Skip to content

[intl-displaynames]: there is no support for "calendar" and "dateTimeField" type #3387

@jguddas

Description

@jguddas

Which package?

intl-displaynames

Describe the bug

type: 'language' | 'region' | 'script' | 'currency'

Has no 'calendar' | 'dateTimeField' even though it works (only tested without polyfill).

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames#using_type_datetimefield

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames#using_type_calendar

Expected behavior

Should be

type: 'language' | 'region' | 'script' | 'currency'  | 'calendar' | 'dateTimeField'

Possible issues

The polyfill might need to be adjusted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions