1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 07:05:07 +00:00
serenity/Userland/Libraries/LibJS/Runtime/Intl/Intl.h
Linus Groh a37dcf8ca7 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/
2021-08-08 20:14:59 +01:00

22 lines
387 B
C++

/*
* 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;
};
}