lang

The language of the pages, as a language tag.

Type Default Notes
string "en" Site option, JAAB reads it too

Use cases

Documentation in one language

lang: 'it',

It is the lang of every page, the og:locale of the metadata, and the language of the interface: see ui for the languages JAAD has its strings in.

The default of several languages

With one directory per language under docs/, lang names the one served without a prefix: with lang: 'en', /guide/ is English and /it/guide/ Italian. A single language directory counts as a language only when lang names it. See Languages.

In JAAB, lang does the same for the language directories under blog/, and a lone blog/it/ counts as a language only when lang names it: otherwise it stays a folder of posts. It is also the <language> of the feed. See JAAB’s Languages.

Limits

  • A tag, as pt-BR; pt_BR stops the build.
  • On a site with several languages, it has to be one of their directories.