JS Built-ins
IntlPluralRulesbeginner

Select plural form

πŸ“– Usage Example
const pr = new Intl.PluralRules('en');
pr.select(1); // 'one'
pr.select(2); // 'other'

select() returns the plural category ('one', 'other', 'few', etc.) for a count.

Use Intl.PluralRules.select to get plural form.

πŸ’‘ Hints (1)
  • β€’ Use .select(n)