diff --git a/frontend/src/i18n/useDayjsLanguageSync.ts b/frontend/src/i18n/useDayjsLanguageSync.ts index 6afe49735..709a98676 100644 --- a/frontend/src/i18n/useDayjsLanguageSync.ts +++ b/frontend/src/i18n/useDayjsLanguageSync.ts @@ -5,7 +5,7 @@ import {i18n, type ISOLanguage, type SupportedLocale} from '@/i18n' export const DAYJS_LOCALE_MAPPING = { 'de-de': 'de', - 'de-swiss': 'de-at', + 'de-swiss': 'de-ch', 'ru-ru': 'ru', 'fr-fr': 'fr', 'vi-vn': 'vi', @@ -15,24 +15,24 @@ export const DAYJS_LOCALE_MAPPING = { 'nl-nl': 'nl', 'pt-pt': 'pt', 'zh-cn': 'zh-cn', - 'no-NO': 'nn', - 'es-ES': 'es', - 'da-DK': 'da', - 'ja-JP': 'ja', - 'hu-HU': 'hu', - 'ar-SA': 'ar-sa', - 'sl-SI': 'sl', - 'pt-BR': 'pt', - 'hr-HR': 'hr', - 'uk-UA': 'uk', - 'lt-LT': 'lt', - 'bg-BG': 'bg', - 'ko-KR': 'ko', + 'no-no': 'nn', + 'es-es': 'es', + 'da-dk': 'da', + 'ja-jp': 'ja', + 'hu-hu': 'hu', + 'ar-sa': 'ar-sa', + 'sl-si': 'sl', + 'pt-br': 'pt', + 'hr-hr': 'hr', + 'uk-ua': 'uk', + 'lt-lt': 'lt', + 'bg-bg': 'bg', + 'ko-kr': 'ko', } as Record export const DAYJS_LANGUAGE_IMPORTS = { 'de-de': () => import('dayjs/locale/de'), - 'de-swiss': () => import('dayjs/locale/de-at'), + 'de-swiss': () => import('dayjs/locale/de-ch'), 'ru-ru': () => import('dayjs/locale/ru'), 'fr-fr': () => import('dayjs/locale/fr'), 'vi-vn': () => import('dayjs/locale/vi'),