Pluralization with CLDR plural rules
Messages that contain a count choose the correct plural form using Intl.PluralRules, covering the categories zero, one, two, few, many and other. This gives correct grammar in languages such as Arabic, Polish and Russian, where a simple singular/plural choice is wrong. Ordinal rules are also available, for example for '3rd column' labels.
Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with a selection status bar, locale 'pl-PL'.
Expected behavior
As the slider moves, the message switches plural category according to locale rules. A side panel shows the category that was selected.
Planned API surface
plural message formatt(key, {count})pluralType: cardinal|ordinalAcceptance criteria
- The plural category is computed with Intl.PluralRules for the active locale. (pending)
- If a catalog lacks a category, the 'other' form is used. (pending)
- The count inside the message is formatted with locale digits. (pending)
- Exact-value matches such as '=0' take precedence over categories. (pending)