This commit is contained in:
lyc8503 committed 2026-01-03 23:31:57 +08:00
commit c4cfcc841f
3 files changed
+42 -2

No files matched your search

+2
View File
@@ -3,6 +3,7 @@ import { initReactI18next } from 'react-i18next'
import LanguageDetector from 'i18next-browser-languagedetector'
import en from '../locales/en/common.json'
import zhCN from '../locales/zh-CN/common.json'
import zhTW from '../locales/zh-TW/common.json'
i18n
.use(LanguageDetector)
@@ -12,6 +13,7 @@ i18n
en: { common: en },
'zh-CN': { common: zhCN },
zh: { common: zhCN },
'zh-TW': { common: zhTW },
},
fallbackLng: 'en',
interpolation: {