integrated Norwegian

This commit is contained in:
Mawoka
2022-12-10 12:35:59 +01:00
parent 3bc49574f5
commit 907f54587b
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -14,6 +14,7 @@ import id from './locales/id.json';
import ca from './locales/ca.json';
import it from './locales/it.json';
import es from './locales/es.json';
import nb_no from './locales/nb_NO.json';
import LanguageDetector from 'i18next-browser-languagedetector';
import type { i18n, Resource } from 'i18next';
@@ -66,6 +67,7 @@ export class I18nService {
this.i18n.addResourceBundle('it', 'translation', it);
this.i18n.addResourceBundle('ca', 'translation', ca);
this.i18n.addResourceBundle('es', 'translation', es);
this.i18n.addResourceBundle('nb_NO', 'translation', nb_no);
}
changeLanguage(language: string): void {
+5
View File
@@ -92,6 +92,11 @@
code: 'es',
name: 'Español',
flag: '🇪🇸'
},
{
code: 'nb_NO',
name: 'Norsk',
flag: '🇳🇴'
}
];
const get_selected_language = (): string => {