feat(localization): added zh_TW (#2913)

* feat(localization): added zh_TW

* fixed based on @coderabbitai

* updated false translation for zh_TW

* new workflow

* revert

* fixed a lot of translations

* turned most zh to zh-CN

* fallbacklang

* bruh

* eliminate ALL _

* fix: paths and other miscs thanks @Calcium-Ion

* fixed translation and temp fix for preferencessettings.js

* fixed translation error

* fixed issue about legacy support

* reverted stupid coderabbit's suggestion
This commit is contained in:
Oliver Tzeng
2026-02-11 20:37:53 +08:00
committed by GitHub
parent 8e8869b0c7
commit c7804fef69
15 changed files with 3724 additions and 180 deletions

View File

@@ -23,7 +23,8 @@ import LanguageDetector from 'i18next-browser-languagedetector';
import enTranslation from './locales/en.json';
import frTranslation from './locales/fr.json';
import zhTranslation from './locales/zh.json';
import zhCNTranslation from './locales/zh-CN.json';
import zhTWTranslation from './locales/zh-TW.json';
import ruTranslation from './locales/ru.json';
import jaTranslation from './locales/ja.json';
import viTranslation from './locales/vi.json';
@@ -32,16 +33,17 @@ i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
load: 'languageOnly',
load: 'currentOnly',
resources: {
en: enTranslation,
zh: zhTranslation,
'zh-CN': zhCNTranslation,
'zh-TW': zhTWTranslation,
fr: frTranslation,
ru: ruTranslation,
ja: jaTranslation,
vi: viTranslation,
},
fallbackLng: 'zh',
fallbackLng: 'zh-CN',
nsSeparator: false,
interpolation: {
escapeValue: false,

File diff suppressed because it is too large Load Diff