From 619f6837b0d1ec6c654d30f4ecedd6696874721f Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 27 Jul 2025 13:37:43 +0200 Subject: [PATCH] fix: norsk loading --- frontend/src/components/settings/Languages.vue | 1 + frontend/src/i18n/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/settings/Languages.vue b/frontend/src/components/settings/Languages.vue index fd6052d6..f17ab8e2 100644 --- a/frontend/src/components/settings/Languages.vue +++ b/frontend/src/components/settings/Languages.vue @@ -30,6 +30,7 @@ export default { ja: "日本語", ko: "한국어", "nl-be": "Dutch (Belgium)", + no: "Norsk", pl: "Polski", "pt-br": "Português", pt: "Português (Brasil)", diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 4e16357d..dcf6cef9 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -27,7 +27,7 @@ import("dayjs/locale/vi"); import("dayjs/locale/zh-cn"); import("dayjs/locale/zh-tw"); import("dayjs/locale/cs"); -import("dayjs/locale/no"); +import("dayjs/locale/nb"); // All i18n resources specified in the plugin `include` option can be loaded // at once using the import syntax @@ -102,7 +102,6 @@ export function detectLocale() { case /^tr\b/.test(locale): locale = "tr"; break; - // ua wasnt a valid locale for ukraine case /^uk\b/.test(locale): locale = "uk"; break; @@ -116,6 +115,10 @@ export function detectLocale() { case /^nl-be\b/.test(locale): locale = "nl-be"; break; + case /^nb\b/.test(locale): + case /^no\b/.test(locale): + locale = "no"; + break; default: locale = "en"; }