Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for Intl.DisplayNames.prototype.of().
Developer library 6
Intl
nable language-sensitive string comparison. - Intl.DateTimeFormat - : Constructor for objects that enable language-sensitive date and time formatting. - Intl.DisplayNames - : Constructor for objects that enable the consistent translation of language, region and script display names. - Intl.DurationFormat - : Constructor for objects that enable locale-sensitive duration formatting. - Intl.ListFormat - : Constr
Intl.supportedValuesOf()
er uppercase codes defined in ISO 4217. These values can be used for the `currency` option when creating objects such as Intl.NumberFormat, as well as for Intl.DisplayNames.prototype.of(). There are over 300 identifiers in common use so we won't list them. For an exhaustive list of possible identifiers, see the [Wikipedia article](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes). References:
Intl.DisplayNames
The **`Intl.DisplayNames`** object enables the consistent translation of language, region and script display names. JavaScript Demo: Intl.DisplayNames ```js interactive-example const regionNamesInEnglish = new Intl.DisplayNames(["en"], { type: "region" }); const regionNamesInTraditionalChinese = new Intl.DisplayNames(["zh-Hant"], { type: "region", }); console.log(regionNamesInEnglish.of("US")); // Expected outpu
Intl.DisplayNames.prototype.resolvedOptions()
The **`resolvedOptions()`** method of Intl.DisplayNames instances returns a new object with properties reflecting the options computed during initialization of this `DisplayNames` object. ## Syntax ```js-nolint resolvedOptions() ``` ### Parameters None. ### Return value A new object with properties reflecting the options computed during the initialization of this `DisplayNames` object. The object has the follow
Intl.DisplayNames.prototype.of()
The **`of()`** method of Intl.DisplayNames instances receives a code and returns a string based on the locale and options provided when instantiating this `Intl.DisplayNames` object. JavaScript Demo: Intl.DisplayNames.prototype.of() ```js interactive-example const regionNamesInEnglish = new Intl.DisplayNames(["en"], { type: "region" }); const regionNamesInTraditionalChinese = new Intl.DisplayNames(["zh-Hant"], {
Internationalization
ences, or graphemes using Intl.Segmenter. - [Getting the displayed name](#display_names) for currencies, languages, scripts, regions, and time zones using Intl.DisplayNames. Most `Intl` APIs share a similar design (Intl.Locale is the only exception). You start by constructing an instance with the desired locale and options. This defines a set of rules for the desired operation (formatting, collation, segmentation, e