Intl.getCanonicalLocales is a part of ECMAScript 2016 Internationalization API Specification. It exposes an existing internal method to canonicalize and de-duplicate the input locale list and returns the result in an array.
Documentation
Specification
Status in Chromium
Blink>JavaScript>Internationalization
In development (tracking bug)
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- Shipped/Shipping
- No signal
- No signal
- No signals
Owner
Search tags
Intl.getCanonicalLocales, Ecma402,Last updated on 2021-01-04
Comments
A polyfill is available (as a part of Ecma402 spec proposal for this feature).