coderef

Intl.DisplayNamesBaseline · Widely available

The Intl.DisplayNames API provides localized names of language, region, script, and currency codes.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Apr 26, 2021. Widely available since Oct 26, 2023.

Browser support

DesktopChrome
1–80Not supported
81+Supportedsince Apr 7, 2020
Current: 155
Edge
12–80Not supported
81+Supportedsince Apr 13, 2020
Current: 154
Firefox
1–85Not supported
86+Supportedsince Feb 23, 2021
Current: 157
Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27
MobileChrome Android
18–80Not supported
81+Supportedsince Apr 7, 2020
Current: 155
Firefox Android
4–85Not supported
86+Supportedsince Feb 23, 2021
Current: 157
Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: DisplayNames.

Feature detection

JS · check before using
if ("DisplayNames" in Intl || ("prototype" in Intl && "DisplayNames" in Intl.prototype)) {
  // Intl.DisplayNames is available
}

Sub-features

Support for each part of the feature (5). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Intl.DisplayNames81818614.1818614.5
Intl.DisplayNames.DisplayNames81818614.1818614.5
Intl.DisplayNames.of81818614.1818614.5
Intl.DisplayNames.resolvedOptions81818614.1818614.5
Intl.DisplayNames.supportedLocalesOf81818614.1818614.5