Translate a page
Add a second language to the site and publish a Spanish version of a page at /es/<path>, with hreflang alternates and a per-language sitemap.
Before you start: a manager account to add the locale (site.settings); an author to translate; AI translation needs an AI provider under Site settings → AI and the ai.use permission.
Steps
- Site settings → Languages. Add
esto the locales (the default staysen). Leave prefix the default locale off unless you want/en/...paths too. - Open the page to translate. In the right rail, Translations lists the site's languages with missing next to
es. Choose Create translation and a mode: Empty (shared fields and the title only), Copy (everything, to edit in place) or AI (text fields and block copy translated with the brand glossary; the draft is marked so a reviewer knows what the model wrote). - The translation opens as a draft with its own revisions. Translate the title, the fields and the layout copy. Fields marked shared (media, dates, references, taxonomy) stay in sync with the source; the layout is copied once and then independent.
- Run Checks, then Publish (or submit for review).
Check the result
/es/<path>answers 200 and<html lang="es">; the English page still answers at/<path>.- Both pages carry
<link rel="alternate" hreflang="...">for each other andx-default. /sitemap.xmlis now an index pointing at/sitemap-en.xmland/sitemap-es.xml.- Editing the English source after this marks the Spanish version outdated under Translations and in Translations status; the Spanish page stays live until you update it.
- The main menu shows the Spanish labels you set on its items (menu items carry per-locale labels).
Going further
- Localization: translation groups, translatable and shared fields, routing and search per locale.
- Translations in the API (
POST /api/entities/:id/translations). - Build a page with AI for the AI settings the
aimode needs.
Spillway 0.1.0 · Edit this page on GitHub