coderef

Intl.Locale infoBaseline · Newly available

The getter methods of the Intl.Locale API provide supplemental information about a Unicode locale, such as the locale's calendar (for example, the first day in a week or the weekend start day), writing direction, 12- or 24-hour cycles, and numbering system.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Jul 21, 2026.

Browser support

DesktopChrome
1–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155
Edge
12–129Not supported
130+Supportedsince Oct 17, 2024
Current: 154
Firefox
1–152Not supported
153+Supportedsince Jul 21, 2026
Current: 157
Safari
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27
MobileChrome Android
18–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155
Firefox Android
4–152Not supported
153+Supportedsince Jul 21, 2026
Current: 157
Safari iOS
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Jul 21, 2026. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN: getCalendars.

Feature detection

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

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Intl.Locale.getCalendars1301301531713015317
Intl.Locale.getCollations1301301531713015317
Intl.Locale.getHourCycles1301301531713015317
Intl.Locale.getNumberingSystems1301301531713015317
Intl.Locale.getTextInfo1301301531713015317
Intl.Locale.getTimeZones1301301531713015317
Intl.Locale.getWeekInfo1301301531713015317