JavaScript API
Intl.PluralRules
Select the locale-specific cardinal or ordinal category for a numeric value.
Formal Syntax & Structure
react syntaxreact
new Intl.PluralRules(locale).select(count)Working Example
Example Snippetreact
new Intl.PluralRules("en-US").select(1)