diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-26 08:39:20 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-27 12:32:24 +0100 |
commit | 86b99fd9a6ccbf2dbb98aabd5f2ba97f6f843596 (patch) | |
tree | 7ddc3e6c7809f483d53b306ac7632d76a481d720 /Userland/Libraries/LibJS/Runtime/Intl | |
parent | 8b93d5121277cc8c09ce12bf629ab36b9b30f01f (diff) | |
download | serenity-86b99fd9a6ccbf2dbb98aabd5f2ba97f6f843596.zip |
LibJS: Extend Intl.DisplayNames.of to support currency tags
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp b/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp index 598c9c4dad..25db52094f 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp @@ -86,6 +86,7 @@ JS_DEFINE_NATIVE_FUNCTION(DisplayNamesPrototype::of) result = Unicode::get_locale_script_mapping(display_names->locale(), code.as_string().string()); break; case DisplayNames::Type::Currency: + result = Unicode::get_locale_currency_mapping(display_names->locale(), code.as_string().string()); break; default: VERIFY_NOT_REACHED(); |