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

Intl.Locale.prototype.region - 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.Locale.prototype.region

Baseline Widely available

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

Intl.Locale region ( ) .

In this article

. . , . JavaScript . region region (script , ) Intl.Locale() region . , undefined.

region undefined. .

Intl.Locale .

( ) (script , ) Intl.Locale() . .

js
const locale = new Intl.Locale("en-Latn-US");
console.log(locale.region); // Prints "US"

Intl.Locale() . region .

js
const locale = new Intl.Locale("fr-Latn", { region: "FR" });
console.log(locale.region); // Prints "FR"

Specification
ECMAScript 2027 Internationalization API Specification
# sec-Intl.Locale.prototype.region


Web Proxy Viewer  |  New URL  |  Original Page