[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Intl [Back]  [Original]

Intl - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Intl

Baseline Widely available *

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2017 ..

* Some parts of this feature may have varying levels of support.

Intl API ECMAScript, - , . Collator, NumberFormat DateTimeFormat Intl. , - .

In this article

Intl.Collator

, - .

Intl.DateTimeFormat

, - .

Intl.NumberFormat

, - .

Methods

Intl.getCanonicalLocales()

Returns canonical locale names.

, - ( ) : locales options () , options.localeMatcher.

locales

locales , BCP 47, . locales , .

BCP 47 ( ). : , , . :

  • "hi": .
  • "de-AT": , .
  • "zh-Hans-CN": , .

, , , () ( ) BCP 47 IANA.

BCP 47 , JavaScript: "u" (Unicode). - Collator, NumberFormat DateTimeFormat. :

  • "de-DE-u-co-phonebk": , : ae, oe, ue.
  • "th-TH-u-nu-thai": (, , , , , , , , , ) .
  • "ja-JP-u-ca-japanese": , 2013 25- 25.

locales, Unicode, . . : "lookup" () , BCP 47; "best fit" ( ) , , , , , , . locales , , . options ( ).

Unicode, . , Unicode, . , "co" () Collator, "phonebk" .

options

options , . options , .

- : localeMatcher, "lookup" "best fit" , .

Specification
ECMAScript 2027 Internationalization API Specification
# intl-object


Web Proxy Viewer  |  New URL  |  Original Page