MatchingSchemaTranslations
Identifies missing or additional translations in {% schema %}
tags.
The following examples contain code snippets that either fail or pass this check.
In the following example, fr.missing
is missing and fr.extra
is not in the default (en
) locale:
In the following example, the fr
label for product
is missing:
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 from schema tags for all non-default (non-en
) locales.
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.