Intl.PluralRules

baseline logo Widely available in browsers but not in WebViews

The Intl.PluralRules API creates a locale-aware object that tells you which of the language’s pluralization rules apply based on a given number.