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 |
浏览器兼容性
BCD tables only load in the browser