mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Remove hard-coded lists of collation types
Working around not having collation data in the CLDR now handled in the Unicode generators.
This commit is contained in:
parent
f8f7015419
commit
c657f23e6f
2 changed files with 2 additions and 5 deletions
|
@ -120,9 +120,7 @@ JS_DEFINE_NATIVE_FUNCTION(Intl::supported_values_of)
|
|||
// 3. Else if key is "collation", then
|
||||
else if (key == "collation"sv) {
|
||||
// a. Let list be ! AvailableCollations( ).
|
||||
// FIXME: We don't yet parse any collation data, but "default" is allowed. This matches Intl.Locale.prototype.collations.
|
||||
static constexpr auto collations = AK::Array { "default"sv };
|
||||
list = collations.span();
|
||||
list = Unicode::get_available_collation_types();
|
||||
}
|
||||
// 4. Else if key is "currency", then
|
||||
else if (key == "currency"sv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue