Intl.Locale
Widely available since 2023-03-16
The Intl.Locale
API parses Unicode locale identifiers, with language, region, and script codes, such as zh-Hans-CN
or en-GB
.
Learning resources on MDN
Browser support
- Chrome 74 Released on 2019-04-23
- Chrome Android 74 Released on 2019-04-24
- Edge 79 Released on 2020-01-15
- Firefox 75 Released on 2020-04-07
- Firefox for Android 79 Released on 2020-07-28
- Safari 14 Released on 2020-09-16
- Safari on iOS 14 Released on 2020-09-16
Specifications
- ECMAScript Internationalization API Specification (#locale-objects), from TC39 (Ecma International).