From d4e3ecd48a4c5b06c7e944c0cfa67355548d053d Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:54:01 +0300 Subject: [PATCH] improve i18n --- landing/src/lib/i18n.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/landing/src/lib/i18n.ts b/landing/src/lib/i18n.ts index 1392530d..a2671394 100644 --- a/landing/src/lib/i18n.ts +++ b/landing/src/lib/i18n.ts @@ -8,7 +8,7 @@ i18next .use(LanguageDetector) .init({ detection: { - order: ['querystring', 'localStorage', 'navigator'], + order: ['localStorage', 'querystring', 'navigator'], caches: ['localStorage'], lookupQuerystring: 'lng', lookupLocalStorage: 'locale', @@ -20,6 +20,7 @@ i18next backend: { loadPath: 'locales/{{lng}}.json', }, + debug: false, }) export const i18n = createI18nStore(i18next)