Anasaki Studio

Content

Multilingual sites

Turn on more languages, translate pages and posts; translations live at /en/… with hreflang, a language switch and a header per language

2 min readLast updated

View as Markdown

On this page

Since 2.5.0 a site can hold content in several languages without a plugin (unlike Page Translate, which machine-translates on click).

Turning languages on#

Site settings → General → More content languages — tick e.g. English and save. The site's main language keeps its addresses; extra languages live under /en/.

Translating pages and posts#

  • Pages or Posts → the row's ⋯ menu → 🌐 Translate to English makes a draft copy of the content and design; edit the text and publish
  • In the post editor the Languages box lists every translation, with buttons for the missing ones
  • Admin lists show a language badge (EN) and a language filter

A translation has its own address, e.g. /en/about-en (change the slug as you like); opening the wrong language's address redirects to the right version.

What follows the language#

  • Post lists, archives and search on /en/… pages show English content only
  • <html lang> and <link rel="alternate" hreflang> tell search engines about each page's languages
  • /en is the translated home page (translate the home page first)
  • A header / footer per language — make another header component (e.g. an English menu linking to /en/…) and pick it in the settings under that language

Language switch#

Designer → Elements → Language switch — put it in the site header: links to the same page in the other languages (the language's home page when there is no translation yet).