mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS+LibUnicode: Implement the Intl.DateTimeFormat constructor
This commit is contained in:
parent
75b2a09a2f
commit
16151aa7d5
Notes:
sideshowbarker
2024-07-17 23:22:20 +09:00
Author: https://github.com/trflynn89
Commit: 16151aa7d5
Pull-request: https://github.com/SerenityOS/serenity/pull/11128
Reviewed-by: https://github.com/linusg ✅
9 changed files with 1089 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue