From 63be988f8b67432b1a68fe6bac71aa102375b332 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Sat, 9 Mar 2024 07:48:43 +0800 Subject: [PATCH] me dum (i18n fix) --- src/core/i18n/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/i18n/index.ts b/src/core/i18n/index.ts index a74e316..eefc340 100644 --- a/src/core/i18n/index.ts +++ b/src/core/i18n/index.ts @@ -46,6 +46,8 @@ export function initFetchI18nStrings() { .then(strings => _loadedStrings[resolvedLocale] = strings) .then(() => currentLocale = resolvedLocale) .catch(e => console.error(`An error occured while fetching strings for ${resolvedLocale}: ${e}`)); + } else { + currentLocale = resolvedLocale; } };