Skip to main content

DefaultLocale

Deprecated

This check only exists in Theme Check v1.X.X.

Makes sure that the theme has a default locale file.


The following examples contain code snippets that either fail or pass this check.

The following is an example of an incorrect directory structure for this check:

└── locales
├── en.json
├── fr.json
└── zh-TW.json

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

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?