mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 03:27:15 +02:00
LibJS+LibUnicode: Implement the Intl.DateTimeFormat constructor
This commit is contained in:
committed by
Linus Groh
parent
75b2a09a2f
commit
16151aa7d5
Notes:
sideshowbarker
2024-07-17 23:22:20 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/16151aa7d5c Pull-request: https://github.com/SerenityOS/serenity/pull/11128 Reviewed-by: https://github.com/linusg ✅
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user