@ -29,6 +29,14 @@ const availableLanguages: AvailableLanguageObject = {
code: 'fr',
display: 'Français',
},
'nb-NO': {
code: 'nb-NO',
display: 'Norwegian Bokmål',
de: {
code: 'de',
display: 'German',
};
const LanguagePicker: React.FC = () => {
@ -1,6 +1,6 @@
import React, { ReactNode } from 'react';
export type AvailableLocales = 'en' | 'ja' | 'fr';
export type AvailableLocales = 'en' | 'ja' | 'fr' | 'nb-NO' | 'de';
interface LanguageContextProps {
locale: AvailableLocales;
@ -20,6 +20,10 @@ const loadLocaleData = (locale: string): Promise<any> => {
return import('../i18n/locale/ja.json');
case 'fr':
return import('../i18n/locale/fr.json');
case 'nb-NO':
return import('../i18n/locale/nb_NO.json');
case 'de':
return import('../i18n/locale/de.json');
default:
return import('../i18n/locale/en.json');
}