# `locales`

> Override the language directories JAAD detects.

The language directories, when detection guesses wrong. JAAD finds them on its
own: see [Languages](https://docs.jaamd.org/jaad/guides/languages.md).

| Type                | Default  |
| ------------------- | -------- |
| `string[] \| false` | detected |

## Use cases

### Pinning the languages

```ts
locales: ['en', 'it'],
```

Only the listed languages are built. A language directory left out, such as a
translation still under way in `fr/`, stays unpublished, with its pages.

### Directories that look like languages

A chapter named `it/` or `ar/` on a site in one language would be read as a
language when there are two of them. Turn detection off:

```ts
locales: false,
```
