Content pages in every language
Built: 2026-11-04.
This is for operators who publish Terms, Privacy, Help and other content pages, and for whoever maintains the code.
Before this change, each page had one text. A Brazilian rider read the Terms in English, and so did a Saudi one. Now each page keeps a translation per language beside its main text.
Writing a page in another language
- Go to Admin → Content and pick a page.
- Under Language, the picker shows the main text and each of the market's languages. A language that already has a translation shows a ✓.
- Choose a language. Its title and body start empty, and the main text appears as a hint.
- Write the translation and press Save page. Saving records a new version in the page history, as any other edit does.
To go back to the main text for a language, empty its title and body and save. The translation is then removed.
What readers get
The rider, driver and partner apps ask for the page in the app's language
(/content/pages/:slug?lang=pt):
- A translation exists for that language. They get it. A regional language
such as
pt-BRusespt. - No translation exists. They get the main text, never a blank page.
- Only the title is translated. The body falls back to the main text.
Each response also says which language it is in (lang) and which languages
the page has (languages).
Code
backend/src/cms/page-languages.ts:validateTranslations, which checks what an admin saves;pageFor, which picks the text for a reader.
Spec alongside.
cms_pages.translations(jsonb) is added by migration1700000203000-CmsPageTranslations.The API takes
PATCH /cms/pages/:id { translations }andGET /content/pages/:slug?lang=.Admin:
app/(dashboard)/cms/page.tsx(cms-languages,cms-lang-<code>).Apps:
contentApi.pagein each app sendslang.