Results 1 - 20 of 27

Intl

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 constructors for Collator, NumberFormat, and DateTimeFormat objects are properties of the Intl object. This page documents these properties as well as functionality common to the internationalization constructors and other language sensitive functions.
Internationalization JavaScript

Intl.Collator

The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison.
Collator Internationalization JavaScript

Intl.Collator.supportedLocalesOf()

The Intl.Collator.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale.
Collator Internationalization JavaScript Method

Intl.DateTimeFormat

The Intl.DateTimeFormat object is a constructor for objects that enable language sensitive date and time formatting.
DateTimeFormat Internationalization JavaScript

Intl.getCanonicalLocales()

The Intl.getCanonicalLocales() method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags.
Internationalization Intl JavaScript Method

Intl.NumberFormat

The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting.
Internationalization JavaScript NumberFormat

Intl.NumberFormat.supportedLocalesOf()

The Intl.NumberFormat.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in number formatting without having to fall back to the runtime's default locale.
Internationalization JavaScript Method NumberFormat

Array.prototype.toLocaleString()

The toLocaleString() method returns a string representing the elements of the array. The elements are converted to Strings using their toLocaleString methods and these Strings are separated by a locale-specific String (such as a comma “,”).
Array Internationalization JavaScript Method Prototype

Intl.Collator.prototype.compare

The Intl.Collator.prototype.compare property returns a getter function that compares two strings according to the sort order of this Collator object.
Collator Internationalization JavaScript Property Prototype

Intl.Collator.prototype

The Intl.Collator.prototype property represents the prototype object for the Intl.Collator constructor.
Collator Internationalization JavaScript Property Prototype

Intl.Collator.prototype.resolvedOptions()

The Intl.Collator.prototype.resolvedOptions() method returns a new object with properties reflecting the locale and collation options computed during initialization of this Collator object.
Collator Internationalization JavaScript Method Prototype

Intl.DateTimeFormat.prototype.format

The Intl.DateTimeFormat.prototype.format property returns a getter function that formats a date according to the locale and formatting options of this Intl.DateTimeFormat object.
DateTimeFormat Internationalization JavaScript Property Prototype

Intl.DateTimeFormat.prototype

The Intl.DateTimeFormat.prototype property represents the prototype object for the Intl.DateTimeFormat constructor.
DateTimeFormat Internationalization JavaScript Property Prototype

Intl.DateTimeFormat.prototype.resolvedOptions()

The Intl.DateTimeFormat.prototype.resolvedOptions() method returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this DateTimeFormat object.
DateTimeFormat Internationalization JavaScript Method Prototype

Intl.DateTimeFormat.supportedLocalesOf()

The Intl.DateTimeFormat.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
DateTimeFormat Internationalization JavaScript Method Prototype

Number.prototype.toLocaleString()

The toLocaleString() method returns a string with a language sensitive representation of this number.
Internationalization JavaScript Method Number Prototype

Intl.NumberFormat.prototype.format

The Intl.NumberFormat.prototype.format property returns a getter function that formats a number according to the locale and formatting options of this NumberFormat object.
Internationalization JavaScript NumberFormat Property Prototype

Intl.NumberFormat.prototype

The Intl.NumberFormat.prototype property represents the prototype object for the Intl.NumberFormat constructor.
Internationalization JavaScript NumberFormat Property Prototype

Intl.NumberFormat.prototype.resolvedOptions()

The Intl.NumberFormat.prototype.resolvedOptions() method returns a new object with properties reflecting the locale and number formatting options computed during initialization of this NumberFormat object.
Internationalization JavaScript Method NumberFormat Prototype

Date.prototype.toLocaleDateString()

The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
Date Internationalization JavaScript Method Prototype Reference