GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

12 results across 6 corpora for Intl.Locale.prototype.baseName.

Papers 6

Developer library 6

Intl.Locale

numbering systems. ## Constructor - Intl.Locale() - : Creates a new `Locale` object. ## Instance properties These properties are defined on `Intl.Locale.prototype` and shared by all `Intl.Locale` instances. - Intl.Locale.prototype.baseName - : Returns basic, core information about the `Locale` in the form of a substring of the complete data string. - Intl.Locale.prototype.calendar - : Returns the part of

Intl.Locale() constructor

e/Global_Objects/Intl/Locale/hourCycle). Possible values are `"h23"`, `"h12"`, `"h11"`, or the practically unused `"h24"`, which are explained in [`Intl.Locale.prototype.getHourCycles`](/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles#supported_hour_cycle_types) - `numeric` - : The [numeric sort option](/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/numeric). A boolean. ##

Intl.Locale.prototype.minimize()

()`** method of Intl.Locale instances attempts to remove information about this locale that would be added by calling maximize(). JavaScript Demo: Intl.Locale.prototype.minimize() ```js interactive-example const english = new Intl.Locale("en-Latn-US"); const korean = new Intl.Locale("ko-Kore-KR"); const arabic = new Intl.Locale("ar-Arab-EG"); console.log(english.minimize().baseName); // Expected output: "en" cons

Intl.Locale.prototype.maximize()

f Intl.Locale instances gets the most likely values for the language, script, and region of this locale based on existing values. JavaScript Demo: Intl.Locale.prototype.maximize() ```js interactive-example const english = new Intl.Locale("en"); const korean = new Intl.Locale("ko"); const arabic = new Intl.Locale("ar"); console.log(english.maximize().baseName); // Expected output: "en-Latn-US" console.log(korean.m

Intl.Locale.prototype.toString()

The **`toString()`** method of Intl.Locale instances returns this Locale's full [locale identifier string](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier). taller ```js interactive-example const french = new Intl.Locale("fr-Latn-FR", { calendar: "gregory", hourCycle: "h12", }); const korean = new Intl.Locale("ko-Kore-KR", { numeric: true, caseFirst: "upper", }); console.log(french.toString

Intl.Locale.prototype.baseName

The **`baseName`** accessor property of Intl.Locale instances returns a substring of this locale's string representation, containing core information about this locale, including the language, script, region, and variants, if available. ## Description `baseName` returns the `language ["-" script] ["-" region] *("-" variant)` subsequence of the [unicode_language_id grammar](https://www.unicode.org/reports/tr35/#Iden

JSON results · Services directory