From 94cd3dba069f818f77f76880cdbbe15d3cd1e4e1 Mon Sep 17 00:00:00 2001 From: "denys.oblohin" Date: Fri, 9 Aug 2024 22:50:17 +0300 Subject: [PATCH] logic fix --- src/v3/src/util/locUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v3/src/util/locUtil.ts b/src/v3/src/util/locUtil.ts index c752d193323..802436f2989 100644 --- a/src/v3/src/util/locUtil.ts +++ b/src/v3/src/util/locUtil.ts @@ -37,7 +37,7 @@ export const loc = ( // If there are no plural forms for current language, // don't fallback to plural forms in default language const hasPluralForms = count !== undefined && bundleName === 'login' - && Object.keys(Bundles.login).findIndex((k) => k.startsWith(`${k}_`)) > 0; + && Object.keys(Bundles.login).findIndex((k) => k.startsWith(`${key}_`)) > 0; const localizedText: string = odysseyTranslate(`${bundleName}:${key}`, { ...paramsObj, count: hasPluralForms ? count : undefined,