Build
Languages
The app ships in English and Spanish. Add a language in two files.
01How the language is chosen
The NEXT_LOCALE cookie wins, then the browser's Accept-Language, then English. URLs stay the same in every language. Visitors switch with the language picker in the footer.
02Add a language
// i18n/config.ts
export const locales = ["en", "es", "de"] as const;
export const localeNames = { en: "English", es: "Español", de: "Deutsch" };Copy messages/en.json to messages/de.json and translate the values, keeping keys and {placeholders}. The add-language skill does both steps for your agent.
03New text
Components read strings with useTranslations (client) or getTranslations (server). New UI text goes into every messages/*.json file, not into the component. Homepage copy in features/marketing/content.ts, emails and MDX content stay English unless you translate them.