Skip to content

DurationFormat tables are too wide #965

Closed
@gibson042

Description

@gibson042

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions