summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-04 17:08:57 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-04 19:08:18 +0100
commit0094259d72fe0f9cbf00bf3fa78f157ffb49f5e4 (patch)
tree84cf977af831f03fee31b25438c65de2b90e4386 /Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h
parent8f3a5ba5d83dcbc5038b81806d28a69525a20407 (diff)
downloadserenity-0094259d72fe0f9cbf00bf3fa78f157ffb49f5e4.zip
LibJS: Implement Intl.DisplayNames.supportedLocalesOf()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h
index be5c4c9e7d..03a4853fad 100644
--- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h
+++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h
@@ -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);