diff --git a/frontend/src/lib/i18n/i18n-service.ts b/frontend/src/lib/i18n/i18n-service.ts index c5e8eee..b5a90aa 100644 --- a/frontend/src/lib/i18n/i18n-service.ts +++ b/frontend/src/lib/i18n/i18n-service.ts @@ -17,6 +17,7 @@ import pl from './locales/pl.json'; import pt from './locales/pt.json'; import uk from './locales/uk.json'; import nl from './locales/nl.json'; +import hu from './locales/hu.json'; // import uz from './locales/uz.json' // import zh_Hans from './locales/zh_Hans.json'; import LanguageDetector from 'i18next-browser-languagedetector'; @@ -77,6 +78,7 @@ export class I18nService { this.i18n.addResourceBundle('pt', 'translation', pt); this.i18n.addResourceBundle('uk', 'translation', uk); this.i18n.addResourceBundle('nl', 'translation', nl); + this.i18n.addResourceBundle('hu', 'translation', hu); // this.i18n.addResourceBundle('uz', 'translation', uz); } diff --git a/frontend/src/lib/i18n/locales/hu.json.license b/frontend/src/lib/i18n/locales/hu.json.license new file mode 100644 index 0000000..f883a78 --- /dev/null +++ b/frontend/src/lib/i18n/locales/hu.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) + +SPDX-License-Identifier: MPL-2.0 diff --git a/frontend/src/lib/language-toggle.svelte b/frontend/src/lib/language-toggle.svelte index 8c0a447..c54931f 100644 --- a/frontend/src/lib/language-toggle.svelte +++ b/frontend/src/lib/language-toggle.svelte @@ -128,6 +128,11 @@ SPDX-License-Identifier: MPL-2.0 code: 'nl', name: 'Nederlands', flag: '🇳🇱' + }, + { + code: "hu", + name: "Magyar", + flag: '🇭🇺' } ]; const get_selected_language = (): string => {