docs(locales): add traditional chinese support

This commit is contained in:
iLuJack
2025-04-10 20:58:46 +08:00
parent 32d5e3d908
commit a72809c59a
4 changed files with 354 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import en from './locales/en.json'
import zh from './locales/zh.json'
import fr from './locales/fr.json'
import ar from './locales/ar.json'
import zh_TW from './locales/zh_TW.json'
const getStoredLanguage = () => {
try {
@@ -27,7 +28,8 @@ i18n
en: { translation: en },
zh: { translation: zh },
fr: { translation: fr },
ar: { translation: ar }
ar: { translation: ar },
zh_TW: { translation: zh_TW }
},
lng: getStoredLanguage(), // Use stored language settings
fallbackLng: 'en',