From 95c81164c2b86dc813646dfbd395a47d7e15d29b Mon Sep 17 00:00:00 2001 From: MohammadMahdi Zamanian Date: Mon, 16 May 2022 21:51:07 +0430 Subject: [PATCH] fix(i18n): issue #154 --- packages/core/i18n/src/core.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/core/i18n/src/core.ts b/packages/core/i18n/src/core.ts index a9640b2b6..24e996393 100644 --- a/packages/core/i18n/src/core.ts +++ b/packages/core/i18n/src/core.ts @@ -39,12 +39,9 @@ localChangeSignal.addListener((local) => { l10nResourceChangeSignal.setProvider(async (local): Promise => { logger.logMethodArgs('l10nResourceProvider', {local}); - const current = await localChangeSignal.getSignalValue(); - if (current.code !== local.code) { - return await getJson(`${configuration.resourcePath}/${local.code}.json`); - // TODO: catch errors and fallback - // TODO: cache requests - } + return await getJson(`${configuration.resourcePath}/${local.code}.json`); + // TODO: catch errors and fallback + // TODO: cache requests }); /**