Skip to content

Are "islamic" and "islamic-rgsa" still supported by Intl.DisplayNames? #1042

@anba

Description

@anba

Are both "islamic" and "islamic-rgsa" still supported by Intl.DisplayNames?

js> new Intl.DisplayNames("en", {type: "calendar"}).of("islamic")
"Hijri Calendar"
js> new Intl.DisplayNames("en", {type: "calendar"}).of("islamic-rgsa")
"Hijri Calendar (Saudi Arabia, sighting)" 

If they are still supported, then https://github.com/tc39/test262/blob/main/test/intl402/Intl/supportedValuesOf/calendars-accepted-by-DisplayNames.js needs to be updated. This assertion checks that Intl.DisplayNames doesn't support any other calendars than the ones returned by Intl.supportedValuesOf. If Intl.supportedValuesOf no longer returns "islamic" and "islamic-rgsa", but Intl.DisplayNames still supports both identifiers, then the assertion will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: enumComponent: Enumerations, display namess: commentStatus: more info is needed to move forward

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions