Intl.PluralRules S4
Proposal details
- Stage: Stage 4
- Status: Finished
- ECMAScript edition: ES2018
- Synchronized: Aug 28, 2026
- 中文译文 · Source repository
Proposal overview
This proposal introduces a new API Intl.PluralRules to select the appropriate plural category for a given number based on locale and type (cardinal or ordinal). The proposal also supports ordinal plurals and specifies the pluralCategories resolution.
Note
The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.
Intl.PluralRules API Specification [draft]
Status
Current Stage:
- Stage 4
Implementation Progress:
Explainer:
Spec Text:
Authors
- Caridy Patiño (@caridy)
- Eric Ferraiuolo (@ericf)
- Alex Sexton (@SlexAxton)
Reviewers
- Daniel Ehrenberg (@littledan)
- Stefan Penner (@stefanpenner)
Informative
This proposal is based on the LDML spec, C.11 Language Plural Rules:
Prior Art
- Java:
Class PluralRules
Usage
Support for ordinals is also included:
TODO
-
new Intl.PluralRules("en").format(1.02);should produce"other" - Bikeshed on Intl.PluralRules
- Spec
pluralCategoriesresolution