For multilingual sites you can add a languages
section in the site.yaml
. The example section below defines two languages.
languages:
de:
name: Deutsch
en:
name: English
The language code will be used as a prefix for collection URLs if a document has the language
attribute set to the corresponding code. For example the collection of English documents tagged with example
would be available at /en/tags/example/
and German documents tagged with beispiel
at /de/tags/beispiel/
. You can use the i18n
site as a starting point for creating a multilingual site: logya create --site i18n mysite
.