Intl.Locale
Widely available
The Intl.Locale
API parses Unicode locale identifiers, with language, region, and script codes, such as zh-Hans-CN
or en-GB
.
To learn more, see
Intl.Locale at MDN.
Compatibility
- 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).