locales

The language directories, when detection guesses wrong. JAAB 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 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:

locales: false,