Intl.DisplayNames
Browser support
Full support
Browser support
Full support
Available in Chrome from version 81 Chrome
Available in Edge from version 81 Edge
Available in Firefox from version 86 Firefox
Available in Opera from version 68 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 81 Chrome Android
Available in Firefox for Android from version 86 Firefox for Android
Available in Opera Android from version 58 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 13.0 Samsung Internet
Available in WebView Android from version 81 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 14.0.0 Node.js
Input
ja
Output
region
{
style: "long",
type: "region"
}
アメリカ合衆国
{
style: "short",
type: "region"
}
アメリカ
{
style: "narrow",
type: "region"
}
アメリカ
language
{
languageDisplay: "dialect",
type: "language"
}
アメリカ英語
{
languageDisplay: "standard",
type: "language"
}
英語 (アメリカ合衆国)
currency
{
type: "currency"
}
米ドル
script
{
type: "script"
}
ラテン文字
calendar
{
type: "calendar"
}
西暦(グレゴリオ暦)
dateTimeField
{
style: "short",
type: "dateTimeField"
}
月
{
style: "long",
type: "dateTimeField"
}
月
{
style: "narrow",
type: "dateTimeField"
}
月