Skip to content

v1.2.0

Choose a tag to compare

@spirit-wiegmann spirit-wiegmann released this 07 Jan 12:53
· 22 commits to main since this release
bb87d0d

🌍 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-ATdeen

Architecture

  • Namespace-based translation files (src/i18n/)
  • Redux integration via localeSlice for 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.


Full Changelog