1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

LibJS: Start implementing Intl.Segmenter

This commit is contained in:
Idan Horowitz 2022-01-29 23:47:29 +02:00 committed by Linus Groh
parent 88c5992e0b
commit a3bc06bb23
13 changed files with 334 additions and 9 deletions

View file

@ -16,6 +16,7 @@
#include <LibJS/Runtime/Intl/NumberFormatConstructor.h>
#include <LibJS/Runtime/Intl/PluralRulesConstructor.h>
#include <LibJS/Runtime/Intl/RelativeTimeFormatConstructor.h>
#include <LibJS/Runtime/Intl/SegmenterConstructor.h>
namespace JS::Intl {
@ -43,6 +44,7 @@ void Intl::initialize(GlobalObject& global_object)
define_direct_property(vm.names.NumberFormat, global_object.intl_number_format_constructor(), attr);
define_direct_property(vm.names.PluralRules, global_object.intl_plural_rules_constructor(), attr);
define_direct_property(vm.names.RelativeTimeFormat, global_object.intl_relative_time_format_constructor(), attr);
define_direct_property(vm.names.Segmenter, global_object.intl_segmenter_constructor(), attr);
define_native_function(vm.names.getCanonicalLocales, get_canonical_locales, 1, attr);
}