@@ -8,12 +8,16 @@ import viVN from "./vi/translation.json";
88import zhCN from "./zh-CN/translation.json" ;
99import zhTW from "./zh-TW/translation.json" ;
1010import achUG from "./ach-UG/translation.json" ;
11+ import jaJP from "./ja/translation.json" ;
12+ import deDE from "./de/translation.json" ;
1113import "dayjs/locale/zh-cn" ;
1214import "dayjs/locale/zh-tw" ;
15+ import "dayjs/locale/ja" ;
16+ import "dayjs/locale/de" ;
1317import { systemConfig } from "@App/pages/store/global" ;
1418
1519i18n . use ( initReactI18next ) . init ( {
16- fallbackLng : "zh-CN " ,
20+ fallbackLng : "en " ,
1721 lng : chrome . i18n . getUILanguage ( ) ,
1822 interpolation : {
1923 escapeValue : false , // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape
@@ -24,6 +28,8 @@ i18n.use(initReactI18next).init({
2428 "zh-CN" : { title : "简体中文" , translation : zhCN } ,
2529 "zh-TW" : { title : "繁体中文" , translation : zhTW } ,
2630 "ach-UG" : { title : "伪语言" , translation : achUG } ,
31+ "ja-JP" : { title : "日本語" , translation : jaJP } ,
32+ "de-DE" : { title : "Deutsch" , translation : deDE } ,
2733 } ,
2834} ) ;
2935
0 commit comments