diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp index d839adbca7..3f3b16b45b 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp @@ -363,8 +363,14 @@ static auto& find_key_in_value(T& value, StringView key) { if (key == "ca"sv) return value.ca; + if (key == "co"sv) + return value.co; if (key == "hc"sv) return value.hc; + if (key == "kf"sv) + return value.kf; + if (key == "kn"sv) + return value.kn; if (key == "nu"sv) return value.nu; diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h index 57ff6c47fa..b45b65b458 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h @@ -22,7 +22,10 @@ using Fallback = Variant; struct LocaleOptions { Value locale_matcher; Optional ca; // [[Calendar]] + Optional co; // [[Collation]] Optional hc; // [[HourCycle]] + Optional kf; // [[CaseFirst]] + Optional kn; // [[Numeric]] Optional nu; // [[NumberingSystem]] }; @@ -30,7 +33,10 @@ struct LocaleResult { String locale; String data_locale; Optional ca; // [[Calendar]] + Optional co; // [[Collation]] Optional hc; // [[HourCycle]] + Optional kf; // [[CaseFirst]] + Optional kn; // [[Numeric]] Optional nu; // [[NumberingSystem]] };