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
en-US
Output
region
{
style: "long",
type: "region"
}
United States
{
style: "short",
type: "region"
}
US
{
style: "narrow",
type: "region"
}
US
language
{
languageDisplay: "dialect",
type: "language"
}
American English
{
languageDisplay: "standard",
type: "language"
}
English (United States)
currency
{
type: "currency"
}
US Dollar
script
{
type: "script"
}
Latin
calendar
{
type: "calendar"
}
Gregorian Calendar
dateTimeField
{
style: "short",
type: "dateTimeField"
}
mo.
{
style: "long",
type: "dateTimeField"
}
month
{
style: "narrow",
type: "dateTimeField"
}
mo