Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020년 9월.
Intl.Locale.prototype.language 속성은 locale과 관련된 언어를 반환하는 접근자 속성입니다.
언어는 locale의 핵심 기능 중 하나입니다. 유니 코드 사양은 locale의 언어 식별자를 언어와 지역으로 함께 취급합니다 (예를 들어 영국 영어와 미국 영어 등의 방언과 변형을 구별하기 위해). Locale의 language 속성은 로캘의 언어 하위 태그를 엄격하게 반환합니다.
유효한 유니 코드 locale 식별자가 되려면 문자열이 언어 하위 태그로 시작해야합니다. Locale 생성자에 대한 주요 인수는 유효한 유니 코드 locale 식별자여야하므로 생성자가 사용될 때마다 언어 하위 태그가있는 식별자를 전달해야합니다.
언어 하위 태그를 지정해야하지만 Locale 생성자는 언어 하위 태그를 재정의 할 수있는 구성 개체를 사용합니다.
| ECMAScript® 2027 Internationalization API Specification # sec-Intl.Locale.prototype.language |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023년 8월 8일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.