# `locales`

> Override the language directories JAAB detects.

The language directories, when detection guesses wrong. JAAB finds them on its
own: see [Languages](https://docs.jaamd.org/jaab/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 posts.

### Directories that look like languages

Directories of posts named `it/` and `id/` on a blog in one language would be
read as two languages. Turn detection off:

```ts
locales: false,
```
