DefaultLocale
Deprecated
This check only exists in Theme Check v1.X.X.
Makes sure that the theme has a default locale file.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
The following is an example of an incorrect directory structure for this check:
└── locales
├── en.json
├── fr.json
└── zh-TW.json
Anchor to ✓ Pass✓ Pass
The following is an example of a correct directory structure for this check. In this check, the en locale file has default in the title.
└── locales
├── en.default.json
├── fr.json
└── zh-TW.json
Anchor to Auto-correctionAuto-correction
Theme Check can correct this error using the --auto-correct flag. When the flag is specified, Theme Check creates an empty en.default.json in the locales directory.
Anchor to Disabling this checkDisabling this check
This check is safe to disable.
Was this page helpful?