Sha256: 411c77a550844c526b5070e638e1edf9a8e81dd5598bfbf692adcf0617a4e091

Contents?: true

Size: 862 Bytes

Versions: 43

Compression:

Stored size: 862 Bytes

Contents

# Ensure theme has a default locale (`DefaultLocale`)

This check makes sure the theme has a default translation file.

## Check Details

This check makes sure a theme has a default locale.

:-1: Example of **incorrect** theme for this check:

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

:+1: Example of **correct** theme for this check:

```
locales/
├── en.default.json  # a default translation file is required
├── fr.json
└── zh-TW.json
```

## Check Options

The default configuration for this check is the following:

```yaml
DefaultLocale:
  enabled: true
```

## Version

This check has been introduced in Theme Check 0.1.0.

## Resources

- [Rule Source][codesource]
- [Documentation Source][docsource]

[codesource]: /lib/theme_check/checks/default_locale.rb
[docsource]: /docs/checks/default_locale.md

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
theme-check-1.15.0 docs/checks/default_locale.md
theme-check-1.14.0 docs/checks/default_locale.md
theme-check-1.13.0 docs/checks/default_locale.md
theme-check-1.12.1 docs/checks/default_locale.md
theme-check-1.12.0 docs/checks/default_locale.md
theme-check-1.11.0 docs/checks/default_locale.md
theme-check-1.10.3 docs/checks/default_locale.md
theme-check-1.10.2 docs/checks/default_locale.md
theme-check-1.10.1 docs/checks/default_locale.md
theme-check-1.10.0 docs/checks/default_locale.md
theme-check-1.9.2 docs/checks/default_locale.md
theme-check-1.9.1 docs/checks/default_locale.md
theme-check-1.9.0 docs/checks/default_locale.md
theme-check-1.8.0 docs/checks/default_locale.md
theme-check-1.7.2 docs/checks/default_locale.md
theme-check-1.7.1 docs/checks/default_locale.md
theme-check-1.7.0 docs/checks/default_locale.md
theme-check-1.6.2 docs/checks/default_locale.md
theme-check-1.6.1 docs/checks/default_locale.md
theme-check-1.6.0 docs/checks/default_locale.md