The Intl.Locale.prototype.calendars property is an accessor property which returns an array of one or more unique calendar identifiers for the Locale.
The Intl.Locale.prototype.calendars property is an accessor property which returns an array of one or more unique calendar identifiers for the Locale.
The calendar property returns an array of all supported calendars for the Locale. The array items indicate the Locale object's calendar era. The following table shows all valid Unicode calendar key strings, along with a description of the calendar era they represent.
buddhistThai Buddhist calendar
chineseTraditional Chinese calendar
copticCoptic calendar
dangiTraditional Korean calendar
ethioaaEthiopic calendar, Amete Alem (epoch approx. 5493 B.C.E)
ethiopicEthiopic calendar, Amete Mihret (epoch approx, 8 C.E.)
gregoryGregorian calendar
hebrewTraditional Hebrew calendar
indianIndian calendar
islamicIslamic calendar
islamic-umalquraIslamic calendar, Umm al-Qura
islamic-tblaIslamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - astronomical epoch)
islamic-civilIslamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - civil epoch)
islamic-rgsaIslamic calendar, Saudi Arabia sighting
iso8601ISO calendar (Gregorian calendar using the ISO 8601 calendar week rules)
japaneseJapanese Imperial calendar
persianPersian calendar
rocCivil (algorithmic) Arabic calendar
islamiccCivil (algorithmic) Arabic calendar
Warning: The islamicc calendar key has been deprecated. Please use islamic-civil.
List supported calendars for a given Locale.
const arEG = new Intl.Locale("ar-EG"); console.log(arEG.calendars); // logs ["gregory", "coptic", "islamic", "islamic-civil", "islamic-tbla"]
const jaJP = new Intl.Locale("ja-JP"); console.log(jaJP.calendars); // logs ["gregory", "japanese"]
| Desktop | Mobile | Server | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | Deno | Node.js | |
calendars |
99 |
99 |
No |
No |
85 |
15.4 |
99 |
99 |
No |
No |
15.4 |
18.0 |
No |
No |
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/calendars