Description
Use this template if you want to request a new feature, or a change to an existing feature.
LanguagesOfSwitzerland
Summary
We have https://github.com/baloise/web-app-utils/blob/master/packages/utils/src/language/language-model.ts and we have specific types for languages in design system:
https://github.com/baloise/design-system/blob/669c63fd734137e886fc50dc0075631e8b0acc07/packages/components/src/utils/config/config.types.ts
I guess this lib should adapt to use the ones from DS instead of strings.
What do you guys think?
Justification
Otherwise we need to remap types:
initialize({
region: 'CH',
language: LanguagesOfSwitzerland.valueOfOrDefault(
getBrowserLang() ?? GERMAN.key,
).key as BalSwissLanguage,
allowedLanguages: LanguagesOfSwitzerland.all.map(
(lan) => lan.key as BalSwissLanguage,
),
});