From a0c14826bceeb3d66ac5d7fac9a71a8ceab80b4b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 16 Mar 2025 18:01:34 +0100 Subject: [PATCH] fix(i18n): use correct Norwegian dialect for dayjs locales Resolves https://community.vikunja.io/t/date-format-and-languange-spesific-date-strings/3244/19 --- frontend/src/i18n/useDayjsLanguageSync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/i18n/useDayjsLanguageSync.ts b/frontend/src/i18n/useDayjsLanguageSync.ts index 2535a7d19..4f9fc734f 100644 --- a/frontend/src/i18n/useDayjsLanguageSync.ts +++ b/frontend/src/i18n/useDayjsLanguageSync.ts @@ -15,7 +15,7 @@ export const DAYJS_LOCALE_MAPPING = { 'nl-nl': 'nl', 'pt-pt': 'pt', 'zh-cn': 'zh-cn', - 'no-no': 'nn', + 'no-no': 'nb', 'es-es': 'es', 'da-dk': 'da', 'ja-jp': 'ja', @@ -42,7 +42,7 @@ export const DAYJS_LANGUAGE_IMPORTS = { 'nl-nl': () => import('dayjs/locale/nl'), 'pt-pt': () => import('dayjs/locale/pt'), 'zh-cn': () => import('dayjs/locale/zh-cn'), - 'no-no': () => import('dayjs/locale/nn'), + 'no-no': () => import('dayjs/locale/nb'), 'es-es': () => import('dayjs/locale/es'), 'da-dk': () => import('dayjs/locale/da'), 'ja-jp': () => import('dayjs/locale/ja'),