From 6439404f5be007dcad44d17e1c098576ebf8d6a9 Mon Sep 17 00:00:00 2001 From: Teng Zhang Date: Fri, 24 Mar 2023 08:53:16 +0800 Subject: [PATCH] fix: locating i18n files error (#119) --- src/i18n.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i18n.ts b/src/i18n.ts index 3a33f7b..c4aade5 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -20,6 +20,9 @@ i18n .use(LanguageDetector) .use(initReactI18next) .init({ + backend: { + loadPath: 'locales/{{lng}}/{{ns}}.json', + }, fallbackLng: { default: ['en'], },