fix: locating i18n files error (#119)

This commit is contained in:
Teng Zhang 2023-03-24 08:53:16 +08:00 committed by GitHub
parent c958165769
commit 6439404f5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,9 @@ i18n
.use(LanguageDetector) .use(LanguageDetector)
.use(initReactI18next) .use(initReactI18next)
.init({ .init({
backend: {
loadPath: 'locales/{{lng}}/{{ns}}.json',
},
fallbackLng: { fallbackLng: {
default: ['en'], default: ['en'],
}, },