ecma402 icon indicating copy to clipboard operation
ecma402 copied to clipboard

Use notation when computing plural form

Open sffc opened this issue 5 years ago • 5 comments

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 avatar Jan 10 '20 13:01 sffc

@sffc any action items on how to move this forward?

longlho avatar Jan 07 '21 15:01 longlho

@sffc any action items on how to move this forward?

Status is "help wanted". It just needs a champion.

sffc avatar Jan 08 '21 00:01 sffc

ok this is something I can pursue. Would this be a proposal or a normative change PR?

longlho avatar Jan 08 '21 02:01 longlho

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.

sffc avatar Jan 08 '21 03:01 sffc

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.

sffc avatar May 02 '24 23:05 sffc