Languages
These options define the main language of the site and, for a multilingual website, its additional languages.
language
The main language, defined by its code.
language: <code> # unique code (`en` by default)
By default, only the paths of the other languages pages are prefixed with their language code, but you can also prefix the paths of the main language pages with the following option:
#language: <code>
language:
code: <code>
prefix: true
languages
Options of available languages, used for pages and templates localization.
languages:
- code: <code> # unique code, `xx` or `xx-XX` (required, e.g.: `en`, `fr`, `en-US`, `fr-CA`)
name: <name> # human readable name (e.g.: `Français`)
locale: <locale> # locale code (required, `language_COUNTRY`, e.g.: `en_US`, `fr_FR`, `fr_CA`)
enabled: <true|false> # enabled or not (`true` by default)
Example:
language: en
languages:
- code: en
name: English
locale: en_US
- code: fr
name: Français
locale: fr_FR
Localize
To localize configuration options you must store them under the config key of the language.
Example:
title: "Cecil in English"
languages:
- code: en
name: English
locale: en_US
- code: fr
name: Français
locale: fr_FR
config:
title: "Cecil en français"