Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) {
const count = replacements[PLURALIZATION_KEY_NAME];
if (typeof count === 'number') {
const group = memoizedPluralRules(locale).select(count);
result = result[group];
additionalReplacements[PLURALIZATION_KEY_NAME] = memoizedNumberFormatter(
locale,
).format(count);
}
}
const processedString =
typeof result === 'string' && pseudotranslate
? pseudotranslateString(result, {
...PSEUDOTRANSLATE_OPTIONS,
toLocale:
typeof pseudotranslate === 'boolean' ? undefined : pseudotranslate,
})
: result;
if (typeof processedString === 'string') {
return updateStringWithReplacements(processedString, {
...replacements,
...additionalReplacements,
});
} else {
return MISSING_TRANSLATION;
}
}