ValidSchemaTranslations
Makes sure that every translation key (t:) referenced inside a {% schema %} tag has a matching entry in the default schema locale file.
This check inspects all string values in the schema JSON—including name, label, info, category, preset values, option labels, and any other translation-key reference—and reports any that can't be resolved.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
In the following example, the t:sections.header.missing_key translation key isn't defined in the default schema locale file:
locales/en.default.schema.json
Anchor to ✓ Pass✓ Pass
In the following example, every t: translation key used in the schema has a matching entry in the default schema locale file:
locales/en.default.schema.json
Anchor to ✗ Fail✗ Fail
In the following example, a translation key inside a nested blocks array is missing from the default schema locale file:
locales/en.default.schema.json
Anchor to OptionsOptions
The following example contains the default configuration for this check:
| Parameter | Description |
|---|---|
enabled | Whether this check is enabled. |
severity | The severity of the check. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended because unresolved translation keys surface as raw t:... strings in the theme editor and can ship a broken merchant experience.