Skip to content
LogoLogo

Put a site in several languages

Who can do this: everyone in the workspace. Publishing needs an admin. You need a site.

A multilingual page is one file with the layout. Its texts are in a words file for each language. Each page then exists in every language, and the languages cannot drift apart.

Steps

  1. Ask the site editor in a conversation about the site, for example "Add German to this site. English stays at the root, German goes under /de/."

  2. The site editor adds German to the site's _languages file. It writes a German words file for every page and shared block, such as locales/de/index.json. A site with another structure keeps its own, as the reference says under Languages.

  3. Check both languages in the preview. On a multilingual page, the bar shows the language, such as EN. Select it to see the page in another language.

  4. An admin publishes the draft. See Publish and restore.

  5. Open the site's Advanced tab, which only admins see. Languages shows each language with its address and its number of pages.

    The Languages section of the site Docs Demo. English is the main language at the root and German is at /de/. Each language shows its number of pages and how many of them are multilingual.
    Each language of the site with its address and its number of pages.
  6. If a language says "1 page not translated", select it to see which page lacks a words file. Ask the site editor to add it.

Good to know

  • A text without a word in a words file shows in the main language.
  • A page of its own at a language path, such as en/legal/index.html, always wins over the filled page. Discontinue calls it a standalone page and never reports it as untranslated.
  • The Pages tab lists multilingual pages under Pages (multilingual) and the others under Pages (standalone).

The rules behind this task are in the reference, under Languages.