diff --git a/src/components/Sidebar/Sidebar.svelte b/src/components/Sidebar/Sidebar.svelte index 203e54a0..46506669 100644 --- a/src/components/Sidebar/Sidebar.svelte +++ b/src/components/Sidebar/Sidebar.svelte @@ -22,6 +22,7 @@ const languages = [ { id: 'zh', label: '中文(简体)' }, + { id: 'tw', label: '中文(繁體)' }, { id: 'en', label: 'English' }, { id: 'fr', label: 'Français' }, { id: 'ko', label: '한국어' }, diff --git a/src/i18n.js b/src/i18n.js index 4ee3e116..fece29aa 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -7,6 +7,7 @@ import ko from './locales/ko.json'; import fr from './locales/fr.json'; import zh from './locales/zh.json'; import pt from './locales/pt.json'; +import tw from './locales/tw.json'; const INIT_OPTIONS = { fallbackLocale: 'en', @@ -25,7 +26,7 @@ $locale.subscribe((value) => { } }); -const supportedLanguage = ['en', 'id', 'ru', 'ko', 'fr', 'zh', 'pt']; +const supportedLanguage = ['en', 'id', 'ru', 'ko', 'fr', 'zh', 'pt', 'tw']; addMessages('en', en); addMessages('id', id); addMessages('ru', ru); @@ -33,6 +34,7 @@ addMessages('ko', ko); addMessages('fr', fr); addMessages('zh', zh); addMessages('pt', pt); +addMessages('tw', tw); export function startClient() { let used = 'en'; diff --git a/src/locales/zh-TW.json b/src/locales/tw.json similarity index 100% rename from src/locales/zh-TW.json rename to src/locales/tw.json diff --git a/static/images/locales/tw.svg b/static/images/locales/tw.svg new file mode 100644 index 00000000..4285d938 --- /dev/null +++ b/static/images/locales/tw.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +