diff --git a/frontend/src/lib/i18n/i18n-service.ts b/frontend/src/lib/i18n/i18n-service.ts index 06c9df0..f3b0cfa 100644 --- a/frontend/src/lib/i18n/i18n-service.ts +++ b/frontend/src/lib/i18n/i18n-service.ts @@ -15,6 +15,7 @@ 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 zh_Hant from './locales/zh_Hant.json'; import LanguageDetector from 'i18next-browser-languagedetector'; import type { i18n, Resource } from 'i18next'; @@ -68,6 +69,7 @@ export class I18nService { this.i18n.addResourceBundle('ca', 'translation', ca); this.i18n.addResourceBundle('es', 'translation', es); this.i18n.addResourceBundle('nb_NO', 'translation', nb_no); + this.i18n.addResourceBundle('zh_Hant', 'translation', zh_Hant); } changeLanguage(language: string): void { diff --git a/frontend/src/lib/language-toggle.svelte b/frontend/src/lib/language-toggle.svelte index 390f46f..29392cb 100644 --- a/frontend/src/lib/language-toggle.svelte +++ b/frontend/src/lib/language-toggle.svelte @@ -47,6 +47,7 @@