Intl.LocaleBaseline · Widely available
The Intl.Locale API parses Unicode locale identifiers, with language, region, and script codes, such as zh-Hans-CN or en-GB.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 16, 2020. Widely available since Mar 16, 2023.
Browser support
DesktopChrome
1–73Not supported
74+Supportedsince Apr 23, 2019
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–74Not supported
75+Supportedsince Apr 7, 2020
Current: 157Safari
1–13.1Not supported
14+Supportedsince Sep 16, 2020
Current: 27MobileChrome Android
18–73Not supported
74+Supportedsince Apr 24, 2019
Current: 155Firefox Android
4–68Not supported
79+Supportedsince Jul 28, 2020
Current: 157Safari iOS
1–13.4Not supported
14+Supportedsince Sep 16, 2020
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: Locale.
Feature detection
JS · check before using
if ("Locale" in Intl || ("prototype" in Intl && "Locale" in Intl.prototype)) {
// Intl.Locale is available
}Specification
Sub-features
Support for each part of the feature (15). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Intl.Locale | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.Locale | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.baseName | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.calendar | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.caseFirst | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.collation | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.hourCycle | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.language | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.maximize | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.minimize | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.numberingSystem | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.numeric | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.region | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.script | 74 | 79 | 75 | 14 | 74 | 79 | 14 |
| Intl.Locale.toString | 74 | 79 | 75 | 14 | 74 | 79 | 14 |