Skip to content

Align Language model with one from Deisgn system #62

Description

@nobilo

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,
),
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions