MatchingTranslations
Identifies missing or additional translations in locale files.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
The following locale files aren't consistent:
en.default.json
es.json
is missing greeting
and goodbye
translations:
es.json
fr.json
is missing greeting
and has a goodby
tag that isn't present in the default locale:
fr.json
Anchor to ✓ Pass✓ Pass
The following locale files are consistent:
en.default.json
fr.json
Anchor to Auto-correctionAuto-correction
Theme Check can correct this error using the --auto-correct
flag. When the flag is specified, Theme Check automatically adds missing translation keys and removes extra translation keys for all non-default locales.
Anchor to OptionsOptions
The following example contains the default configuration for this check:
Parameter | Description |
---|---|
enabled | Whether the check is enabled. |
severity | The severity of the check. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended because it might result in an inconsistent translation experience for some users.