Intl.DisplayNames
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
Intl.DisplayNames
是一个对象构造器,它支持语言、区域和脚本显示名称的一致翻译。
语法
new Intl.DisplayNames([locales[, options]])
规范
Specification |
---|
ECMAScript Internationalization API Specification # intl-displaynames-objects |