Closed
Description
The tables in Intl.DurationFormat and PartitionDurationFormatPattern have separate columns for Style Slot and Display Slot, making them excessively wide and hindering readability of the rendered PDF (although thankfully not overflowing AFAICT). I think the situation would be improved by replacing DurationFormat [[${Unit}Style]]/[[${Unit}Display]] slot pairs with [[${Unit}Options]] slots containing the { [[Style]], [[Display]] } Records returned by GetDurationUnitOptions:
Slot Unit Values Digital Default [[YearsOptions]] "years" « "long", "short", "narrow" » "short" [[MonthsOptions]] "months" « "long", "short", "narrow" » "short" [[WeeksOptions]] "weeks" « "long", "short", "narrow" » "short" [[DaysOptions]] "days" « "long", "short", "narrow" » "short" [[HoursOptions]] "hours" « "long", "short", "narrow", "numeric", "2-digit" » "numeric" … … … …
I expect such a change to simplify the Intl.DurationFormat constructor steps as well.
Metadata
Metadata
Assignees
Labels
No labels