Skip to content
Docs menuAdd a language

Add a language

Translations use next-intl. The generated app ships English, Spanish and French; adding a language is one message file and one list entry.

Last updated November 1, 2026

How it works

The language is not part of the URL. i18n/request.ts reads the NEXT_LOCALE cookie, falls back to the default locale, and loads messages/<locale>.json. When the auth module is installed, users pick their language in Settings, Account.

Steps

  1. 1
    Add the localeList it in the routing config.
    i18n/routing.ts
    export const routing = defineRouting({
    locales: ["en", "es", "fr", "de"],
    defaultLocale: "en",
    })
  2. 2
    Add the messagesCopy messages/en.json to messages/de.json and translate the values. Keep the keys.
  3. 3
    Name it in the language pickerWith the auth module, add a label for the new code to LOCALE_LABELS in components/auth/account-language-form.tsx, for example de: "Deutsch". The picker lists every locale from routing.locales.
  4. 4
    Check itChoose the language in Settings, Account, or set the NEXT_LOCALE cookie to de, and reload.