Picks the right plural form for count in language and interpolates it.
count
language
Uses Intl.PluralRules for the CLDR category, then substitutes {count} and anything in extra.
Intl.PluralRules
{count}
extra
Optional
pluralFor('en', 1, { one: '{count} item', other: '{count} items' });// '1 item'pluralFor('en', 3, { one: '{count} of {total}', other: '{count} of {total}' }, { total: 10 });// '3 of 10' Copy
pluralFor('en', 1, { one: '{count} item', other: '{count} items' });// '1 item'pluralFor('en', 3, { one: '{count} of {total}', other: '{count} of {total}' }, { total: 10 });// '3 of 10'
Picks the right plural form for
countinlanguageand interpolates it.Uses
Intl.PluralRulesfor the CLDR category, then substitutes{count}and anything inextra.