|
@@ -103,8 +103,7 @@ Array* collations_of_locale(GlobalObject& global_object, Locale const& locale_ob
|
|
VERIFY(Unicode::parse_unicode_locale_id(locale).has_value());
|
|
VERIFY(Unicode::parse_unicode_locale_id(locale).has_value());
|
|
|
|
|
|
// 4. Let list be a List of 1 or more unique canonical collation identifiers, which must be lower case String values conforming to the type sequence from UTS 35 Unicode Locale Identifier, section 3.2, sorted in descending preference of those in common use for string comparison in locale. The values "standard" and "search" must be excluded from list.
|
|
// 4. Let list be a List of 1 or more unique canonical collation identifiers, which must be lower case String values conforming to the type sequence from UTS 35 Unicode Locale Identifier, section 3.2, sorted in descending preference of those in common use for string comparison in locale. The values "standard" and "search" must be excluded from list.
|
|
- // FIXME: Retrieve this data from the CLDR when we fully support collation. This matches Intl.supportedValuesOf.
|
|
|
|
- Vector<StringView> list { "default"sv };
|
|
|
|
|
|
+ auto list = Unicode::get_keywords_for_locale(locale, "co"sv);
|
|
|
|
|
|
// 5. Return ! CreateArrayFromListOrRestricted( list, restricted ).
|
|
// 5. Return ! CreateArrayFromListOrRestricted( list, restricted ).
|
|
return create_array_from_list_or_restricted(global_object, move(list), move(restricted));
|
|
return create_array_from_list_or_restricted(global_object, move(list), move(restricted));
|