Table of contentsShowHide
Astro Orbit comes in English, Spanish, French and Dutch. The language decides the theme’s own words: the menu, the buttons, the contact form’s messages, the labels on a project page and the privacy page. It also decides how dates are written: “November 26, 2026” in English, “26 de noviembre de 2026” in Spanish, “26 novembre 2026” in French, “26 november 2026” in Dutch.
Pick the language
The setting is in src/config/theme.config.ts:
export const language = 'es';
Your own text, in theme.config.ts, your posts and your projects, you write in that language yourself.
Your posts
Posts go in a folder named after the language: src/content/blog/es/ for a Spanish site. The folder doesn’t appear in the address, so src/content/blog/es/hola.mdx is /blog/hola/. If the folder for your language is empty while another one has posts, the build says so.
Another language
For a language the theme doesn’t have yet, such as Chinese, with the code zh:
- Copy
src/i18n/en.tstosrc/i18n/zh.ts, and translate the text between the quotes.pnpm testfails when a line is missing, so nothing stays in English by accident. - Copy
src/i18n/privacy/en.astrotosrc/i18n/privacy/zh.astro, and translate the privacy text. Until it’s there, the privacy page stays in English, and the build says so. - Set
language = 'zh'intheme.config.ts.
The browser’s language data writes the dates, so a Chinese site shows “2026年11月26日” without a rule from you. Chinese and Japanese don’t put spaces between words, so the reading time on a post counts their characters instead of their words.
A font for the share images
The share images and the blog covers are drawn when the site is built, with the theme’s fonts, Outfit and Archivo. They have the Latin alphabet only. For a language in another script, put a font that has its letters in src/fonts/, as a static .ttf, .otf or .woff file (not a variable font, and not .woff2): for Chinese, for example, Noto Sans SC from Google Fonts, whose download has static files in its static folder. The images use it for every letter the theme’s fonts don’t have. Without it, those letters come out as boxes, and the build log names the title that needs the font.
The pages themselves don’t need the font: a browser shows the letters with a font of its own.