Skip to content

Guarantee that a format returned from DateTimeStyleFormat can also be returned by BasicFormatMatcher/BestFitFormatMatcher #1043

@ptomato

Description

@ptomato

See tc39/proposal-temporal#3062.

It seems that DateTimeStyleFormat may return a DateTime Format Record that BasicFormatMatcher and BestFitFormatMatcher cannot. @anba explains it pretty well in tc39/proposal-temporal#3062 (comment) — it seems that DateTimeStyleFormat's data source is %Intl.DateTimeFormat%.[[LocaleData]].[[<locale>]].[[styles]], while the format matchers' data source is %Intl.DateTimeFormat%.[[LocaleData]].[[<locale>]].[[formats]], and CLDR has inconsistencies between those data sources. (https://unicode-org.atlassian.net/browse/CLDR-14993)

This seems like an artificial limitation based on inconsistencies in CLDR. The spec should require consistency here, even if implementations using CLDR cannot deliver that yet.

How best to ensure this consistency in spec text, I'm not sure.

Possibly related: #189?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataRelated to locale datac: datetimeComponent: dates, times, timezones

    Type

    No type

    Projects

    Status

    Previously Discussed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions