The getCalendars()
method of Intl.Locale
instances returns a list of one or more unique calendar identifiers for this locale.
Note: In some versions of some browsers, this method was implemented as an accessor property called calendars
. However, because it returns a new array on each access, it is now implemented as a method to prevent the situation of locale.calendars === locale.calendars
returning false
. Check the browser compatibility table for details.