mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 07:05:07 +00:00

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/
22 lines
387 B
C++
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;
|
|
};
|
|
|
|
}
|