Skip to content

Commit e4f527a

Browse files
logic fix
1 parent 4c36ae5 commit e4f527a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/v3/src/util/locUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const loc = (
3737
// If there are no plural forms for current language,
3838
// don't fallback to plural forms in default language
3939
const hasPluralForms = count !== undefined && bundleName === 'login'
40-
&& Object.keys(Bundles.login).findIndex((k) => k.startsWith(`${k}_`)) > 0;
40+
&& Object.keys(Bundles.login).findIndex((k) => k.startsWith(`${key}_`)) > 0;
4141
const localizedText: string = odysseyTranslate(`${bundleName}:${key}`, {
4242
...paramsObj,
4343
count: hasPluralForms ? count : undefined,

0 commit comments

Comments
 (0)