HOC SiteDocumentation

Add a website language

Enable a new locale, translate overlays and entries, and confirm public URLs.

1. Add the locale

Open Website settings → Locales and add the language. Each locale gets its own URL prefix; one locale is primary for the site.

See Locales settings and Locales concept.

2. Translate design and objects

  • Pages, header, footer, components — pass contentLocale on reads/writes. Translations are sparse overlays on a shared layout: only changed leaves are stored (save_localization or locale-aware save_page / save_chrome). There is no separate publish step; a successful save is live on the public site within about 60 seconds (expectedLiveBy).
  • Object types and entries — use localizedValuesByLocale on types/entries that declare localizable fields.

3. Routes

A new locale gets a copy of the primary locale’s route head so paths do not 404. Adjust per-locale paths when a language needs different segments.

4. Verify on the public site

Open the locale-prefixed liveUrl (or a dry-run previewUrl). Confirm links use the correct locale prefix and that omitted overlays fall back as you expect.