---
title: "locale-code-conflict"
description: "Locale codes that differ only in spelling, such as zh_CN and zh-CN."
canonical_url: "https://x18n.dev/checks/locale-code-conflict"
---
# locale-code-conflict

> Locale codes that differ only in spelling, such as zh_CN and zh-CN.

<!-- Generated by docs/scripts/generate.ts from the source code. Do not edit. -->

Locale codes that differ only in spelling, such as zh_CN and zh-CN.

The check is on by default, with the severity `warning`.

## Configure

Change the severity, or turn the check off, in `checks`:

```ts [x18n.config.ts]
import { defineConfig } from '@x18n/core'

export default defineConfig({
  checks: {
    'locale-code-conflict': 'off',
  },
})
```

`x18n check --only locale-code-conflict` runs this check alone. `x18n check --skip locale-code-conflict` skips it for one run.

## Source

- [`packages/builtins/src/checks/index.ts`](https://github.com/x18n-dev/x18n/blob/main/packages/builtins/src/checks/index.ts)


## Sitemap

See the full [sitemap](https://x18n.dev/sitemap.md) for all pages.
