mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibJS: Implement Intl.DisplayNames.supportedLocalesOf()
This commit is contained in:
parent
8f3a5ba5d8
commit
0094259d72
6 changed files with 144 additions and 0 deletions
|
@ -29,6 +29,9 @@ struct LocaleResult {
|
|||
Optional<Unicode::LocaleID> is_structurally_valid_language_tag(StringView locale);
|
||||
String canonicalize_unicode_locale_id(Unicode::LocaleID& locale);
|
||||
Vector<String> canonicalize_locale_list(GlobalObject&, Value locales);
|
||||
Vector<String> best_fit_supported_locales(Vector<String> const& requested_locales);
|
||||
Vector<String> lookup_supported_locales(Vector<String> const& requested_locales);
|
||||
Array* supported_locales(GlobalObject&, Vector<String> const& requested_locales, Value options);
|
||||
Object* coerce_options_to_object(GlobalObject& global_object, Value options);
|
||||
Value get_option(GlobalObject& global_object, Value options, PropertyName const& property, Value::Type type, Vector<StringView> const& values, Fallback fallback);
|
||||
String insert_unicode_extension_and_canonicalize(Unicode::LocaleID locale_id, Unicode::LocaleExtension extension);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue