Skip to content
This repository was archived by the owner on Aug 31, 2026. It is now read-only.

Commit 619f683

Browse files
committed
fix: norsk loading
1 parent d778c19 commit 619f683

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/src/components/settings/Languages.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default {
3030
ja: "日本語",
3131
ko: "한국어",
3232
"nl-be": "Dutch (Belgium)",
33+
no: "Norsk",
3334
pl: "Polski",
3435
"pt-br": "Português",
3536
pt: "Português (Brasil)",

frontend/src/i18n/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import("dayjs/locale/vi");
2727
import("dayjs/locale/zh-cn");
2828
import("dayjs/locale/zh-tw");
2929
import("dayjs/locale/cs");
30-
import("dayjs/locale/no");
30+
import("dayjs/locale/nb");
3131

3232
// All i18n resources specified in the plugin `include` option can be loaded
3333
// at once using the import syntax
@@ -102,7 +102,6 @@ export function detectLocale() {
102102
case /^tr\b/.test(locale):
103103
locale = "tr";
104104
break;
105-
// ua wasnt a valid locale for ukraine
106105
case /^uk\b/.test(locale):
107106
locale = "uk";
108107
break;
@@ -116,6 +115,10 @@ export function detectLocale() {
116115
case /^nl-be\b/.test(locale):
117116
locale = "nl-be";
118117
break;
118+
case /^nb\b/.test(locale):
119+
case /^no\b/.test(locale):
120+
locale = "no";
121+
break;
119122
default:
120123
locale = "en";
121124
}

0 commit comments

Comments
 (0)