From ba20ac3b89e11af897978c350f20b501fd028686 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 5 Feb 2022 21:41:22 +0100 Subject: [PATCH] fix: don't try to load a langauge if there's none provided (cherry picked from commit 210a78be86385b2d57a65563082e60bd11965217) --- src/i18n/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/i18n/index.js b/src/i18n/index.js index 7bbaa3ffd..2effc357d 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -30,6 +30,10 @@ const setI18nLanguage = lang => { } export const loadLanguageAsync = lang => { + if(!lang) { + return + } + if ( // If the same language i18n.global.locale === lang ||