Internationalization

Multi-language support with next-intl.

Overview

DirectoryKit supports multiple languages via next-intl.

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

How it works

  1. Translation files live in messages/{locale}.json
  2. middleware.ts handles locale detection and routing
  3. Components use useTranslations() hook for translated strings
  4. LanguageSwitcher component allows users to change language

Configuration

See i18n Config for setup instructions.