Skip to content
Astro Rocket
Get in touch

Docs · The theme

Languages

One language per site, the translation files, and where posts and projects for each language go.

All docs pages

A site has one language: language in src/config/aurora.config.mjs, 'en', 'es', 'fr' or 'nl'. The menus, the pages, the forms and their emails, dates and <html lang> follow it.

The words are in src/i18n/translations/<language>.ts, grouped by page, and the privacy page’s text is in src/i18n/privacy/<language>.astro. A new word goes into all four files.

Posts and projects are read from the folder for the language: src/content/blog/<language>/ and src/content/projects/<language>/. The demo’s posts and projects are in English only, so a site in another language starts with an empty blog and projects page.

The pages keep their English addresses (/services/, /about/) in every language.

These docs and the components page are in English in every language.

Several languages on one site

List them in src/i18n/locales.mjs (Velocity’s multilingual routing). The velocity-add-locale skill in .agents/skills/ walks through it.