1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibJS+LibUnicode: Implement the Intl.DateTimeFormat constructor

This commit is contained in:
Timothy Flynn 2021-11-28 17:55:47 -05:00 committed by Linus Groh
parent 75b2a09a2f
commit 16151aa7d5
9 changed files with 1089 additions and 2 deletions

View file

@ -361,6 +361,10 @@ String insert_unicode_extension_and_canonicalize(Unicode::LocaleID locale, Unico
template<typename T>
static auto& find_key_in_value(T& value, StringView key)
{
if (key == "ca"sv)
return value.ca;
if (key == "hc"sv)
return value.hc;
if (key == "nu"sv)
return value.nu;