diff options
author | Linus Groh <mail@linusgroh.de> | 2021-08-08 18:27:28 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-08 20:14:59 +0100 |
commit | a37dcf8ca75a4601280d649c4f17c3faeef9c886 (patch) | |
tree | 8fca8e74cfb9d4688ed16254d92ad69c3151d7b8 /Userland/Libraries/LibJS/Runtime/Intl/Intl.h | |
parent | 7d8c182359ab28b00db01856053af6365b239ba8 (diff) | |
download | serenity-a37dcf8ca75a4601280d649c4f17c3faeef9c886.zip |
LibJS: Add the Intl namespace object :^)
This is the start of implementing ECMA-402 in LibJS, better known as the
ECMAScript Internationalization API.
Much like Temporal this gets its own subdirectory (Runtime/Intl/) as
well as a new C++ namespace (JS::Intl) so we don't have to prefix all
the files and classes with "Intl".
https://tc39.es/ecma402/
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/Intl.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/Intl.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/Intl.h b/Userland/Libraries/LibJS/Runtime/Intl/Intl.h new file mode 100644 index 0000000000..b4c09740f5 --- /dev/null +++ b/Userland/Libraries/LibJS/Runtime/Intl/Intl.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021, Linus Groh <linusg@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibJS/Runtime/Object.h> + +namespace JS::Intl { + +class Intl final : public Object { + JS_OBJECT(Intl, Object); + +public: + explicit Intl(GlobalObject&); + virtual void initialize(GlobalObject&) override; + virtual ~Intl() override = default; +}; + +} |