You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ResolveLocale cannot accept some valid calendars in a u-ca- extension, because it only considers a key subtag followed by zero or one type subtags. RFC 6067 allows for "zero or more" type subtags to make the keyword.
Has a test been added for this? An indirect test would be possible with by checking the value of 'calendar' option. For instance, something like this can be used to test.
var options = Intl.DateTimeFormat("ar-u-ca-islamic-civil").resolvedOptions();
assertEquals(options.calendar, "islamic-civil");
ResolveLocale cannot accept some valid calendars in a
u-ca-
extension, because it only considers akey
subtag followed by zero or onetype
subtags. RFC 6067 allows for "zero or more"type
subtags to make thekeyword
.In the current spec the following calendar identifiers are incorrectly matched:
ethiopic-amete-alem
is an alias forethioaa
, but will be matched asethiopic
.islamic-civil
replaces the deprecatedislamicc
, but will be matched asislamic
.islamic-umalqura
,islamic-tbla
, andislamic-rgsa
will each be matched asislamic
.The text was updated successfully, but these errors were encountered: