import i18n from"i18next";import{
initReactI18next }from"react-i18next";import zh from"./zh";import en from"./en";const resources ={
en:{
translation: en,},zh:{
translation: zh,},};
i18n.use(initReactI18next).init({
resources,fallbackLng:"zh",lng:"zh",debug:true,interpolation:{
escapeValue:false,// not needed for react as it escapes by default},});exportdefault i18n;