v1.2.0
🌍 Internationalization (i18n) Support
This release adds complete multi-language support to the DQM React Component using i18next.
✨ New Features
Multi-Language UI
- Supported languages: English (default), German, Spanish
- Language switcher in sidebar footer for easy switching
- Automatic detection of browser language preference
- URL parameter override:
?dqmUiLang=de - Persistent preference via localStorage (
dqm_locale) - Regional fallbacks:
de-AT→de→en
Architecture
- Namespace-based translation files (
src/i18n/) - Redux integration via
localeSlicefor reactive state - Type-safe translation keys with TypeScript support
📦 New Exports
// i18n utilities
import { i18n, resolveLanguage } from '@crownpeak/dqm-react-component';
// Locale constants & helpers
import { SUPPORTED_LOCALES, DEFAULT_LOCALE, normalizeLocale } from '@crownpeak/dqm-react-component';
// Types
import type { SupportedLocale, AvailableLanguage } from '@crownpeak/dqm-react-component';📖 Documentation
- New I18N.md guide covering:
- Adding new languages
- Adding translation keys
- Interpolation & namespaces
- Troubleshooting
📋 Full Changelog
See CHANGELOG.md for details.