mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibJS: Extend Intl.DisplayNames.of to support script tags
This commit is contained in:
parent
0f02def3c2
commit
a029e3d38a
2 changed files with 16 additions and 0 deletions
|
@ -83,6 +83,7 @@ JS_DEFINE_NATIVE_FUNCTION(DisplayNamesPrototype::of)
|
|||
result = Unicode::get_locale_territory_mapping(display_names->locale(), code.as_string().string());
|
||||
break;
|
||||
case DisplayNames::Type::Script:
|
||||
result = Unicode::get_locale_script_mapping(display_names->locale(), code.as_string().string());
|
||||
break;
|
||||
case DisplayNames::Type::Currency:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue