Skip to content

Commit 5273ed8

Browse files
authored
Editorial: Locale getCalendars should not exclude non-canonical IDs (tc39#1085)
Fixes tc39#1084 Ref tc39#1067
1 parent f0577dd commit 5273ed8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/locale.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ <h1>
642642
1. Let _calendarsInUse_ be a List of unique calendar types in common use for date and time formatting in _lookupRegion_, sorted by descending preference of use in _lookupRegion_. The list is empty if no calendar preference data for _lookupRegion_ is available.
643643
1. For each element _identifier_ of _calendarsInUse_, do
644644
1. Let _canonical_ be CanonicalizeUValue(*"ca"*, _identifier_).
645-
1. If _identifier_ is _canonical_ and _availableCalendars_ contains _identifier_, then
646-
1. Append _identifier_ to _list_.
645+
1. If _availableCalendars_ contains _canonical_ and _list_ does not contain _canonical_, then
646+
1. Append _canonical_ to _list_.
647647
1. If _list_ is empty, set _list_ to « *"gregory"* ».
648648
1. Return CreateArrayFromList(_list_).
649649
</emu-alg>

0 commit comments

Comments
 (0)