-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
designNeeds design work to make progressNeeds design work to make progress
Description
ICU4J has a number of settings for range formatting:
collapse
Sets the aggressiveness of "collapsing" fields across the range separator. Possible values:
- ALL: "3-5K miles"
- UNIT: "3K - 5K miles"
- NONE: "3K miles - 5K miles"
- AUTO: usually UNIT or NONE, depending on the locale and formatter settings
The default value is AUTO.
identityFallback
Sets the behavior when the two sides of the range are the same. This could happen if the same two numbers are passed to the formatRange function, or if different numbers are passed to the function but they become the same after rounding rules are applied. Possible values:
- SINGLE_VALUE: "5 miles"
- APPROXIMATELY_OR_SINGLE_VALUE: "~5 miles" or "5 miles", depending on whether the number was the same before rounding was applied
- APPROXIMATELY: "~5 miles"
- RANGE: "5-5 miles" (with collapse=UNIT)
The default value is APPROXIMATELY.
Do we want to add those options to ECMA-402, or just stick with the defaults?
Metadata
Metadata
Assignees
Labels
designNeeds design work to make progressNeeds design work to make progress