locales
The language directories, when detection guesses wrong. JAAD finds them on its own: see Languages.
| Type | Default |
|---|---|
string[] | false |
detected |
Use cases
Pinning the languages
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:
locales: false,