diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index caa8a25e8..dfb200346 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -57,8 +57,8 @@ export function getCssVariable(aCssVariable: string) { ); } -export function getDateFnsLocale(aLocale = '') { - if (aLocale.startsWith('de')) { +export function getDateFnsLocale(aLanguageCode: string) { + if (aLanguageCode === 'de') { return de; }