MatchingTranslations
Identifies missing or additional translations in locale files.
The following examples contain code snippets that either fail or pass this check.
The following locale files aren't consistent:
es.json
is missing greeting
and goodbye
translations:
fr.json
is missing greeting
and has a goodby
tag that isn't present in the default locale:
The following locale files are consistent:
Auto-correction
Anchor link to section titled "Auto-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.
The following example contains the default configuration for this check:
Parameter | Description |
---|---|
enabled |
Whether the check is enabled. |
severity |
The severity of the check. |
Disabling this check
Anchor link to section titled "Disabling this check"Disabling this check isn't recommended because it might result in an inconsistent translation experience for some users.