Integrated hungarian language

This commit is contained in:
Mawoka
2023-08-07 16:17:08 +02:00
parent 008885ffec
commit e750149743
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -17,6 +17,7 @@ import pl from './locales/pl.json';
import pt from './locales/pt.json'; import pt from './locales/pt.json';
import uk from './locales/uk.json'; import uk from './locales/uk.json';
import nl from './locales/nl.json'; import nl from './locales/nl.json';
import hu from './locales/hu.json';
// import uz from './locales/uz.json' // import uz from './locales/uz.json'
// import zh_Hans from './locales/zh_Hans.json'; // import zh_Hans from './locales/zh_Hans.json';
import LanguageDetector from 'i18next-browser-languagedetector'; import LanguageDetector from 'i18next-browser-languagedetector';
@@ -77,6 +78,7 @@ export class I18nService {
this.i18n.addResourceBundle('pt', 'translation', pt); this.i18n.addResourceBundle('pt', 'translation', pt);
this.i18n.addResourceBundle('uk', 'translation', uk); this.i18n.addResourceBundle('uk', 'translation', uk);
this.i18n.addResourceBundle('nl', 'translation', nl); this.i18n.addResourceBundle('nl', 'translation', nl);
this.i18n.addResourceBundle('hu', 'translation', hu);
// this.i18n.addResourceBundle('uz', 'translation', uz); // this.i18n.addResourceBundle('uz', 'translation', uz);
} }
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
SPDX-License-Identifier: MPL-2.0
+5
View File
@@ -128,6 +128,11 @@ SPDX-License-Identifier: MPL-2.0
code: 'nl', code: 'nl',
name: 'Nederlands', name: 'Nederlands',
flag: '🇳🇱' flag: '🇳🇱'
},
{
code: "hu",
name: "Magyar",
flag: '🇭🇺'
} }
]; ];
const get_selected_language = (): string => { const get_selected_language = (): string => {