处理i18n警告

This commit is contained in:
lyswhut 2021-10-17 13:15:31 +08:00
parent 139d81e5a9
commit d4753f7c8a

View File

@ -25,6 +25,7 @@ export const init = (lang = 'zh_cn') => {
return i18n
.use(initReactI18next) // passes i18n down to react-i18next
.init({
compatibilityJSON: 'v3', // https://www.i18next.com/misc/json-format
// debug: true,
resources,
lng: lang,