Skip to content

Provides elm-review rules to detect hardcoded user facing strings

License

Notifications You must be signed in to change notification settings

dlalic/elm-review-i18n

Repository files navigation

elm-review-i18n

Provides elm-review rules to detect hardcoded user facing strings.

Provided rules

Configuration

module ReviewConfig exposing (config)

import NoMissingTranslations
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoMissingTranslations.rule
    ]

Fail

Html.text "Hello!"

Success

Html.text (hello translations)

When (not) to enable this rule

This rule is useful when finding user facing hardcoded strings that should be localized.

This rule is not useful when there is no i18n.

Try it out

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.

About

Provides elm-review rules to detect hardcoded user facing strings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published