i18n Config

Configure multi-language support.

Overview

The config/i18n.config.ts file configures internationalization via next-intl.

i18n is disabled by default. Enable it by setting i18n: true in config/features.config.ts.

Configuration

OptionTypeDescription
defaultLocalestringDefault language (e.g., "en")
localesstring[]Supported languages
localeDetectionbooleanAuto-detect user's language

Translation files

Translations live in the messages/ directory:

messages/
  en.json     # English (always required)
  es.json     # Spanish
  de.json     # German
  ...

Adding a new language

  1. Add the locale to config/i18n.config.ts
  2. Create messages/{locale}.json with translations
  3. The middleware handles locale routing automatically