-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
C-pluralrulesComponent: Plural rulesComponent: Plural rulesS-smallSize: One afternoon (small bug fix or enhancement)Size: One afternoon (small bug fix or enhancement)
Milestone
Description
Summary
Currently, the enum Count is being used in multiple places around icu4x, such as units, currency, decimal ... etc.
- I suggest implement in
PluralRulesplace an enum called lPluralRuleCount, which would contain all the CLDR counts:
pub enum PluralRulesCount {
Zero,
One,
Two,
... etc.
}- All data providers should adopt this standardized
PluralRuleCount. - If users need to use extra counts or variations, they should extend the existing
PluralRuleCount.- Example:
pub enum CompactDecimalCount {
PluralRules(PluralRulesCount)
Explicit1,
Explicit0,
}Metadata
Metadata
Assignees
Labels
C-pluralrulesComponent: Plural rulesComponent: Plural rulesS-smallSize: One afternoon (small bug fix or enhancement)Size: One afternoon (small bug fix or enhancement)