Intl.getCanonicalLocales()
Intl.getCanonicalLocales()
静态方法返回一个包含规范区域设置名称的数组。重复项将被省略,并且元素将被验证为结构上有效的语言标签。
¥The Intl.getCanonicalLocales()
static method returns an array
containing the canonical locale names. Duplicates will be omitted and elements will be
validated as structurally valid language tags.
Try it
语法
参数
返回值
示例
使用 getCanonicalLocales
规范
Specification |
---|
ECMAScript Internationalization API Specification # sec-intl.getcanonicallocales |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getCanonicalLocales |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.