Skip to content
Astro Lumetric
Start free

Docs · The theme

Languages

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

All docs pages

A site has one language: language in src/config/theme.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, including the plans and their prices, and the privacy page’s text is in src/i18n/privacy/<language>.astro. A new word goes into all four files; a word missing from one shows in English. nl.ts also carries Velocity’s own words from src/i18n/ui.ts, which only has English, Spanish and French.

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

The pages keep their English addresses (/pricing/, /about/, /login/) 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). Then the pages in the other languages get the translated addresses in src/config/nav.config.ts, such as /es/precios/. The velocity-add-locale skill in .agents/skills/ walks through it.