Skip to content

Should "und" behave like "root" or undefined? #885

@sven-oly

Description

@sven-oly

This seems wrong. Apparently 'und' falls back to 'en', which is different behavior than ICU4C.

Examples:

Welcome to Node.js v18.19.1.
Type ".help" for more information.
> dt = new Intl.DateTimeFormat('und', {"month":"short","weekday":"narrow","day":"numeric","calendar":"gregory","numberingSystem":"latn"})
DateTimeFormat [Intl.DateTimeFormat] {}
> dt.format()
'T, Apr 30'

> Intl.DateTimeFormat.supportedLocalesOf(["und"])
[]
> Intl.DateTimeFormat.supportedLocalesOf(["und", "en"])
[ 'en' ]
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataRelated to locale datac: metaComponent: intl-wide issuess: discussStatus: TG2 must discuss to move forward

    Type

    No type

    Projects

    Status

    Previously Discussed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions