Skip to content

Commit

Permalink
logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Aug 22, 2024
1 parent 186fc47 commit 94cd3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v3/src/util/locUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 94cd3db

Please sign in to comment.