Provides elm-review
rules to detect hardcoded user facing strings.
NoMissingTranslations
- Reports hardcoded user facing strings.
module ReviewConfig exposing (config)
import NoMissingTranslations
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoMissingTranslations.rule
]
Html.text "Hello!"
Html.text (hello translations)
This rule is useful when finding user facing hardcoded strings that should be localized.
This rule is not useful when there is no i18n.
You can try the example configuration above out by running the following command:
elm-review --template dlalic/elm-review-i18n/preview
This project is expanded from No-empty-html-text rule.