LibJS+LibLocale: Replace relative time formatting with ICU

This uses ICU for all of the Intl.RelativeTimeFormat prototypes, which
lets us remove all data from our relative-time format generator.
This commit is contained in:
Timothy Flynn 2024-06-14 11:54:37 -04:00 committed by Andreas Kling
commit 7f9ccd39f5
Notes: sideshowbarker 2024-07-17 05:01:20 +09:00
9 changed files with 353 additions and 631 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
* Copyright (c) 2022-2024, Tim Flynn <trflynn89@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -29,6 +29,4 @@ private:
JS_DECLARE_NATIVE_FUNCTION(supported_locales_of);
};
ThrowCompletionOr<NonnullGCPtr<RelativeTimeFormat>> initialize_relative_time_format(VM& vm, RelativeTimeFormat& relative_time_format, Value locales_value, Value options_value);
}