mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:12:44 +00:00 
			
		
		
		
	 a37dcf8ca7
			
		
	
	
		a37dcf8ca7
		
	
	
	
	
		
			
			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;
 | |
| };
 | |
| 
 | |
| }
 |