Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
The Intl.DisplayNames object enables the consistent translation of language, region and script display names.
Creates a new Intl.DisplayNames object.
Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
These properties are defined on Intl.DisplayNames.prototype and shared by all Intl.DisplayNames instances.
Intl.DisplayNames.prototype.constructorThe constructor function that created the instance object. For Intl.DisplayNames instances, the initial value is the Intl.DisplayNames constructor.
Intl.DisplayNames.prototype[Symbol.toStringTag]The initial value of the [Symbol.toStringTag] property is the string "Intl.DisplayNames". This property is used in Object.prototype.toString().
This method receives a code and returns a string based on the locale and options provided when instantiating Intl.DisplayNames.
Intl.DisplayNames.prototype.resolvedOptions()Returns a new object with properties reflecting the locale and formatting options computed during initialization of the object.
To create an Intl.DisplayNames for a locale and get the display name for a region code.
To create an Intl.DisplayNames for a locale and get the display name for a language-script-region sequence.
To create an Intl.DisplayNames for a locale and get the display name for a script code.
To create an Intl.DisplayNames for a locale and get the display name for currency code.
| ECMAScript® 2027 Internationalization API Specification # intl-displaynames-objects |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 10, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.