The Intl object is the namespace for the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting,and date and time formatting. The INTL object provides access to several constructors as well as functionality common to the internationalization constructors and other language sensitive functions.

Documentation Intl by Mozilla Contributors, licensed under CC-BY-SA 2.5.

Static methods

staticgetCanonicalLocales(locales:String):Array<String>

staticgetCanonicalLocales(locales:Array<String>):Array<String>

Returns canonical locale names.