Skip to content

Support for explicit 0 and 1 rules for number formatting #21

@shihaohong

Description

@shihaohong

Original Flutter issue: flutter/flutter#84291
Taken directly from https://unicode-org.github.io/cldr/ldml/tr35-numbers.html#Explicit_0_1_rules:

Some types of CLDR data (such as unitPatterns and currency displayNames) allow specification 
of plural rules for explicit cases “0” and “1”, in addition to the language-specific plural cases specified 
above: “zero”, “one”, “two” ... “other”:

- The explicit “0” and “1” cases are not defined by language-specific rules, and are available in any 
language for the CLDR data items that accept them.
- The explicit “0” and “1” cases apply to the exact numeric values 0 and 1 respectively. These cases
are typically used for plurals of items that do not have fractional value, like books or files.
- The explicit “0” and “1” cases have precedence over the “zero” and “one” cases. For example, if 
for a particular element CLDR data includes values for both the “1” and “one” cases, then the “1” 
value is used for numeric values of exactly 1, while the “one” value is used for any other formatted 
numeric values matching the “one” plural rule for the language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestpackage:intltype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions