From 338b7a8c1308fc79fe0bca7fdc1413984984b1d4 Mon Sep 17 00:00:00 2001 From: EliasT05 <46528691+EliasTors@users.noreply.github.com> Date: Fri, 8 Aug 2025 21:33:11 +0200 Subject: [PATCH] Added nb-NO to list of locals --- src/components/LocaleSwitcher.tsx | 4 ++++ src/i18n/config.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/LocaleSwitcher.tsx b/src/components/LocaleSwitcher.tsx index 080c8f7b..bb96df4e 100644 --- a/src/components/LocaleSwitcher.tsx +++ b/src/components/LocaleSwitcher.tsx @@ -48,6 +48,10 @@ export default function LocaleSwitcher() { { value: 'zh-CN', label: '简体中文' + }, + { + value: 'nb-NO', + label: 'Norsk (Bokmål)' } ]} /> diff --git a/src/i18n/config.ts b/src/i18n/config.ts index 305d66d3..c6f3a85f 100644 --- a/src/i18n/config.ts +++ b/src/i18n/config.ts @@ -1,4 +1,4 @@ export type Locale = (typeof locales)[number]; -export const locales = ['en-US', 'es-ES', 'fr-FR', 'de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR', 'zh-CN'] as const; +export const locales = ['en-US', 'es-ES', 'fr-FR', 'de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR', 'zh-CN', 'nb-NO'] as const; export const defaultLocale: Locale = 'en-US'; \ No newline at end of file