importi18nfrom"i18next";import{initReactI18next}from"react-i18next";importtranslation_enfrom"./en.json";importtranslation_zhfrom"./zh.json";constresources={en:{translation:translation_en,},zh:{translation:translation_zh,},};i18n.use(initReactI18next)// passes i18n down to react-i18next.init({resources,lng:"zh",// keySeparator: false, // we do not use keys in form messages.welcome// header.sloganinterpolation:{escapeValue:false,// react already safes from xss},});exportdefaulti18n;