mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibJS: Implement Intl.DisplayNames.prototype.of
Note that only option type=region is really implemented. Other types will resort to the fallback option. This prototype method will be able to implement other type options once LibUnicode supports more.
This commit is contained in:
parent
38d29a40dc
commit
17bb652775
6 changed files with 189 additions and 0 deletions
|
@ -28,5 +28,6 @@ struct LocaleResult {
|
|||
Vector<String> canonicalize_locale_list(GlobalObject&, Value locales);
|
||||
Value get_option(GlobalObject& global_object, Value options, PropertyName const& property, Value::Type type, Vector<StringView> const& values, Fallback fallback);
|
||||
LocaleResult resolve_locale(Vector<String> const& requested_locales, LocaleOptions const& options, Vector<StringView> relevant_extension_keys);
|
||||
Value canonical_code_for_display_names(GlobalObject&, DisplayNames::Type type, StringView code);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue