Cecil logo Cecil
What's on this page

Multilingual

If your pages are available in multiple languages there is 2 different ways to define it:

Through file name

This is the common way to translate a page from the main language to another language.

You just need to duplicate the reference page and suffix it with the target language code (e.g.: fr).

Example:

├─ about.md    # the reference page
└─ about.fr.md # the french version (`fr`)

Through front matter

If you want to create a page in a language other than the main language, without it being a translation of an existing page, you can use the language variable in its front matter.

Example:

---
language: fr
---

Each translated page reference the pages in others languages.

Those pages collection is available in templates with the following variable:

{{ page.translations }}