---
title: DefaultLocale
description: Checks that the theme has a default translation file.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/default-locale
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/default-locale.md
api_name: liquid
---

# Default​Locale

**Deprecated:**

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

Makes sure that the theme has a [default locale file](https://shopify.dev/docs/storefronts/themes/architecture/locales#the-default-locale-file).

***

## Examples

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

### ✗ Fail

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

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

### ✓ 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.

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

***

## Auto-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.

***

## Disabling this check

This check is safe to [disable](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration).

***
