ecma402
ecma402 copied to clipboard
Use notation when computing plural form
The Intl.PluralRules spec currently allows the digit settings to affect the plural form. However, we should also allow notation (scientific/compact) to affect the plural form. See ICU-13836.
Wait until after Unified NumberFormat is merged.
@sffc any action items on how to move this forward?
@sffc any action items on how to move this forward?
Status is "help wanted". It just needs a champion.
ok this is something I can pursue. Would this be a proposal or a normative change PR?
Proposal please, simply because it makes it a lot easier to track and organize. I think we can probably get this directly to Stage 2 or 3 in a single meeting.
This is small enough to be a pull request. It's just a bug fix.
This code:
new Intl.PluralRules("fr-FR", { notation: "compact", compactDisplay: "long" }).select(1.00000020e6)
currently, for me, returns "other", but it should return "many", since the corresponding Intl.NumberFormat returns "1 million", which needs the "many" plural form.