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
| Option | Type | Description |
|---|---|---|
defaultLocale | string | Default language (e.g., "en") |
locales | string[] | Supported languages |
localeDetection | boolean | Auto-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
- Add the locale to
config/i18n.config.ts - Create
messages/{locale}.jsonwith translations - The middleware handles locale routing automatically