Intl.supportedValuesOf()
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since March 2022.
The Intl.supportedValuesOf() static method returns an array containing the supported calendar, collation, currency, numbering systems, or unit values supported by the implementation.
Duplicates are omitted and the array is sorted in ascending lexicographical order (or more precisely, using Array.prototype.sort() with an undefined compare function).
The method can be used to feature-test whether values are supported in a particular implementation and download a polyfill only if necessary. It can also be used to build UIs that allow users to select their preferred localized values, for example when the UI is created from WebGL or server-side.
This method is locale-unaware: it is possible that certain identifiers are only supported or preferred in certain locales. If you want to determine the preferred values for a specific locale, you should use the Intl.Locale object, such as Intl.Locale.prototype.getCalendars().
Try it
console.log(Intl.supportedValuesOf("calendar"));
console.log(Intl.supportedValuesOf("collation"));
console.log(Intl.supportedValuesOf("currency"));
console.log(Intl.supportedValuesOf("numberingSystem"));
console.log(Intl.supportedValuesOf("timeZone"));
console.log(Intl.supportedValuesOf("unit"));
// Expected output: Array ['key'] (for each key)
try {
Intl.supportedValuesOf("someInvalidKey");
} catch (err) {
console.log(err.toString());
// Expected output: RangeError: invalid key: "someInvalidKey"
}
Syntax
Intl.supportedValuesOf(key)
Parameters
key-
A key string indicating the category of values to be returned. This is one of:
"calendar": see supported calendar types"collation": see supported collation types"currency": see supported currency identifiers"numberingSystem": see supported numbering system types"timeZone": see supported time zone identifiers"unit": see supported unit identifiers
Return value
A sorted array of unique string values indicating the values supported by the implementation for the given key. The values that could be returned are listed below.
Supported calendar types
Below are all values that are commonly supported by browsers for the calendar key. These values can be used for the calendar option or the ca Unicode extension key when creating objects such as Intl.DateTimeFormat, as well as for creating Temporal date objects. This list is explicitly sanctioned by the ECMA-402 specification, so all implementations should be consistent.
| Value | Description |
|---|---|
buddhist |
Thai Buddhist calendar, proleptic. Month numbers, month codes, and days are the same as in the ISO 8601 calendar, but the epoch year is different. There is one era. |
chinese |
Traditional Chinese calendar, proleptic. Lunisolar calendar used in China based on data published by the Purple Mountain Observatory between 1900 and 2100 (which compiles with GB/T 33661-2017 between 1912 and 2100), falling back to an implementation-defined approximation outside that range. The arithmetic year is identical to gregory, and there are no eras. |
coptic |
Coptic calendar, proleptic. Similar solar algorithm to ethioaa and ethiopic, with one era and a different epoch year. |
dangi |
Traditional Korean calendar, proleptic. Lunisolar calendar using months published by the Korea Astronomy and Space Science Institute (KASI) between 1900 and 2050, falling back to an implementation-defined approximation outside that range. The arithmetic year is identical to gregory, and there are no eras. |
ethioaa |
Ethiopic calendar, Amete Alem, proleptic. Similar solar algorithm to coptic and ethiopic, with one era and a different epoch year. |
ethiopic |
Ethiopic calendar, Amete Mihret, proleptic. Similar solar algorithm to coptic and ethioaa, with two eras and a different epoch year. |
gregory |
Gregorian calendar, proleptic. Solar calendar almost identical to the ISO 8601 calendar, except that it does not define week numbering and it contains two eras, one before the epoch year. |
hebrew |
Hebrew calendar, proleptic. Civil calendar with Tishrei as the first month of the year. Lunisolar calendar with one leap month inserted after month 5. There is one era. |
indian |
Indian national (or Åaka) calendar, proleptic. Solar calendar with one era. |
islamic-civil |
Hijri calendar, proleptic, tabular/rule-based with leap year rule II (leap years 2,5,7,10,13,16,18,21,24,26,29 in the 30-year cycle (1-based numbering)) and civil epoch (Friday July 16, 622 Julian / 0622-07-19 ISO) |
islamic-tbla |
Hijri calendar, proleptic, tabular/rule-based with leap year rule II (leap years 2,5,7,10,13,16,18,21,24,26,29 in the 30-year cycle (1-based numbering)) and astronomical epoch (Thursday July 15, 622 Julian / 0622-07-18 ISO) |
islamic-umalqura |
Hijri calendar, proleptic, Umm al-Qura. Lunar calendar using KACST-calculated months from the start of 1300 AH (1882-11-12 ISO) to the end of 1600 AH (2174-11-25 ISO), falling back to islamic-civil outside that range. |
iso8601 |
ISO calendar (variant of the Gregorian calendar with week rules and formatting parameters made region-independent) |
japanese |
Japanese Imperial calendar (this calendar adds an era for each new emperor, so the output year and era for a future date may not match the input year and era when your code runs on a future engine version. Note: See the remarks below this table about dates prior to 1868-10-23 ISO.) |
persian |
Persian (or Solar Hijri) calendar, proleptic. There is one era. |
roc |
Republic of China (or Minguo) calendar, proleptic. Month numbers, month codes, and days are the same as in the ISO 8601 calendar, but the epoch year is different. There are two eras, one before the epoch year and one after. |
As of October 2025, in the japanese calendar, dates prior to 1868-10-23 ISO (the start date of the year 1 Meiji) don't work as expected in browsers in two ways. First, CLDR had the wrong start date for the Meiji era, which causes calendar implementations to extend the Meiji era further to the past than it actually did. Second, the upcoming Intl era and monthCode Proposal specifies that dates prior to 1873-01-01 ISO should use Gregorian eras, but browsers have traditionally used approximations of prior Japanese eras instead. The japanese calendar was taken into use on January 1, 6 Meiji / 1873-01-01 ISO, so these problems only affect proleptic dates.
The types below are specified in CLDR but do not have implementations distinct from the above calendars in browsers.
| Value | Description | Notes |
|---|---|---|
ethiopic-amete-alem |
Ethiopic calendar, Amete Alem, proleptic. | This is an alias for ethioaa and therefore is not returned by supportedValuesOf(). Use ethioaa instead. |
islamic |
Hijri calendar, unspecified algorithm. | As of April 2025, this is an astronomical simulation whose parameters are undocumented and that is not known to match a specific Hijri calendar variant from non-software contexts. It is specified to be canonicalized to a different calendar, usually one of islamic-umalqura, islamic-tbla, or islamic-civil, and raise a warning. |
islamicc |
Civil (algorithmic) Arabic calendar. | This is an alias for islamic-civil and therefore is not returned by supportedValuesOf(). Use islamic-civil instead. |
The Temporal.PlainDate.prototype.era and Temporal.PlainDate.prototype.monthCode docs provide more information about different calendars.
References:
- CLDR Calendar type keys
- UTS 35, Dates
- Islamic calendar types (CLDR design proposal)
Supported collation types
Below are all values that are commonly supported by browsers for the collation key. These values can be used for the collation option or the co Unicode extension key when creating objects such as Intl.Collator.
| Value | Description |
|---|---|
compat |
A previous version of the ordering, for compatibility (for Arabic) |
dict |
Dictionary style ordering (for Sinhala). Also recognized as dictionary. |
emoji |
Recommended ordering for emoji characters. The requested language has no effect, so combining this with a language that requires language-specific rules breaks sorting for text in that language! |
eor |
European ordering rules (ENV 13710). This order is designed not to be language-specific. While the API requires attaching this to a language, the requested language has no effect on the order. |
phonebk |
Phonebook style ordering (for German). Also recognized as phonebook. |
phonetic |
Phonetic ordering (sorting based on pronunciation; for Lingala) |
pinyin |
Pinyin ordering for Latin and for Han characters (for Chinese) |
searchjl |
Special collation type for Korean initial consonant search. Warning: This collation is not for sorting, even though you can only use it with Intl.Collator of usage: "sort". |
stroke |
Pinyin ordering for Latin, stroke order for Han characters (for Chinese) |
trad |
Traditional style ordering (such as in Spanish). Also recognized as traditional. |
unihan |
Unihan radical-stroke ordering for Han characters (for Chinese, Japanese, and Korean), Pinyin ordering for Latin for Chinese and Japanese standard kana ordering for Japanese |
zhuyin |
Pinyin ordering for Latin, zhuyin order for Bopomofo and Han characters (for Chinese) |
The types below are specified in CLDR data, but are deprecated, are discouraged from explicit usage, and/or may not be indicated by browsers as supported for various reasons. Avoid using them:
| Value | Description | Notes |
|---|---|---|
big5han |
Pinyin ordering for Latin, big5 charset ordering for CJK characters (used in Chinese) | Deprecated. |
direct |
Binary code point order (used in Hindi) | Deprecated. |
ducet |
The default Unicode collation element table order | The ducet collation type is not available to the Web. |
gb2312 |
Pinyin ordering for Latin, gb2312han charset ordering for CJK characters (for Chinese). Also recognized as gb2312han. |
Deprecated. |
reformed |
Reformed ordering (such as Swedish) | Deprecated. This is the old name for the default ordering for Swedish whose collation naming used to differ from other languages. Since this was the default, request sv instead of requesting sv-u-co-reformed. |
search |
Special collation type for string search | Do not use as a collation type, since in Intl.Collator, this collation is activated via the usage: "search" option. There is currently no API for substring search, so this is currently only good for filtering a list of strings by trying a full-string match of the key against each list item. |
standard |
Default ordering for each language, except Chinese (and, previously, Swedish) | Do not use explicitly. In general, it's unnecessary to specify this explicitly and specifying this for Swedish is problematic due to the different meaning for Swedish in the past. |
References:
Supported currency identifiers
Currency identifiers are three-letter uppercase codes defined in ISO 4217. These values can be used for the currency option when creating objects such as Intl.NumberFormat, as well as for Intl.DisplayNames.prototype.of(). There are over 300 identifiers in common use so we won't list them. For an exhaustive list of possible identifiers, see the Wikipedia article.
References:
Supported numbering system types
Below are all values that are commonly supported by browsers for the numberingSystem key. These values can be used for the numberingSystem option or the nu Unicode extension key when creating objects such as Intl.NumberFormat. For the rows with "digit characters", the runtime translates the digits one-by-one without extra actions. The others marked as "algorithmic" need additional algorithms to translate the digits. The higher the Unicode code point is, the newer the numbering system is and the more likely it is unsupported by all browsers.
| Value | Description | Digit characters |
|---|---|---|
adlm |
Adlam digits | ð¥ð¥ð¥ð¥ð¥ð¥ð¥ð¥ð¥ð¥ (U+1E950 to U+1E959) |
ahom |
Ahom digits | ð°ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ (U+11730 to U+11739) |
arab |
Arabic-Indic digits | ٠١٢٣٤٥٦٧٨٩ (U+0660 to U+0669) |
arabext |
Extended Arabic-Indic digits | Û°Û°Û±Û²Û³Û´ÛµÛ¶Û·Û¸Û¹ (U+06F0 to U+06F9) |
armn |
Armenian upper case numerals | algorithmic |
armnlow |
Armenian lower case numerals | algorithmic |
bali |
Balinese digits | áááááááááá (U+1B50 to U+1B59) |
beng |
Bengali digits | ০১২৩৪৫৬à§à§®à§¯ (U+09E6 to U+09EF) |
bhks |
Bhaiksuki digits | ð±ð±ð±ð±ð±ð±ð±ð±ð±ð± (U+11C50 to U+11C59) |
brah |
Brahmi digits | ð¦ð§ð¨ð©ðªð«ð¬ðð®ð¯ (U+11066 to U+1106F) |
cakm |
Chakma digits | ð¶ð·ð¸ð¹ðºð»ð¼ð½ð¾ð¿ (U+11136 to U+1113F) |
cham |
Cham digits | ê©ê©ê©ê©ê©ê©ê©ê©ê©ê© (U+AA50 to U+AA59) |
cyrl |
Cyrillic numerals | algorithmic |
deva |
Devanagari digits | ०१२३४५६à¥à¥®à¥¯ (U+0966 to U+096F) |
diak |
Dives Akuru digits | ð¥ð¥ð¥ð¥ð¥ð¥ð¥ð¥ð¥ð¥ (U+11950 to U+11959) |
ethi |
Ethiopic numerals | algorithmic |
fullwide |
Full width digits | ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ (U+FF10 to U+FF19) |
gara |
Garay digits | ðµðµðµðµðµðµ
ðµðµðµðµ (U+10D40 to U+10D49) |
geor |
Georgian numerals | algorithmic |
gong |
Gunjala Gondi digits | ð¶ ð¶¡ð¶¢ð¶£ð¶¤ð¶¥ð¶¦ð¶§ð¶¨ð¶© (U+11DA0 to U+11DA9) |
gonm |
Masaram Gondi digits | ðµðµðµðµðµðµðµðµðµðµ (U+11D50 to U+11D59) |
grek |
Greek upper case numerals | algorithmic |
greklow |
Greek lower case numerals | algorithmic |
gujr |
Gujarati digits | ૦૧૨૩૪૫૬à«à«®à«¯ (U+0AE6 to U+0AEF) |
gukh |
Gurung Khema digits | ð°ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ (U+16130 to U+16139) |
guru |
Gurmukhi digits | ੦੧੨੩੪੫੬à©à©®à©¯ (U+0A66 to U+0A6F) |
hanidays |
Han-character day-of-month numbering for lunar/other traditional calendars | |
hanidec |
Positional decimal system using Chinese number ideographs as digits | ãä¸äºä¸åäºå
ä¸å
«ä¹ (U+3007, U+4E00, U+4E8C, U+4E09, U+56DB, U+4E94, U+516D, U+4E03, U+516B, U+4E5D) |
hans |
Simplified Chinese numerals | algorithmic |
hansfin |
Simplified Chinese financial numerals | algorithmic |
hant |
Traditional Chinese numerals | algorithmic |
hantfin |
Traditional Chinese financial numerals | algorithmic |
hebr |
Hebrew numerals | algorithmic |
hmng |
Pahawh Hmong digits | ðððððððððð (U+16B50 to U+16B59) |
hmnp |
Nyiakeng Puachue Hmong digits | ð
ð
ð
ð
ð
ð
ð
ð
ð
ð
(U+1E140 to U+1E149) |
java |
Javanese digits | ê§ê§ê§ê§ê§ê§ê§ê§ê§ê§ (U+A9D0 to U+A9D9) |
jpan |
Japanese numerals | algorithmic |
jpanfin |
Japanese financial numerals | algorithmic |
jpanyear |
Japanese first-year Gannen numbering for Japanese calendar | algorithmic |
kali |
Kayah Li digits | ê¤ê¤ê¤ê¤ê¤ê¤
ê¤ê¤ê¤ê¤ (U+A900 to U+A909) |
kawi |
Kawi digits | ð½ð½ð½ð½ð½ð½ð½ð½ð½ð½ (U+11F50 to U+11F59) |
khmr |
Khmer digits | á á¡á¢á£á¤á¥á¦á§á¨á© (U+17E0 to U+17E9) |
knda |
Kannada digits | ೦೧೨೩೪೫೬à³à³®à³¯ (U+0CE6 to U+0CEF) |
krai |
Kirat Rai digits | ðµ°ðµ±ðµ²ðµ³ðµ´ðµµðµ¶ðµ·ðµ¸ðµ¹ (U+16D70 to U+16D79) |
lana |
Tai Tham Hora (secular) digits | áªáªáªáªáªáª
áªáªáªáª (U+1A80 to U+1A89) |
lanatham |
Tai Tham (ecclesiastical) digits | áªáªáªáªáªáªáªáªáªáª (U+1A90 to U+1A99) |
laoo |
Lao digits | à»à»à»à»à»à»à»à»à»à» (U+0ED0 to U+0ED9) |
latn |
Latin digits | 0123456789 (U+0030 to U+0039) |
lepc |
Lepcha digits | á±á±á±á±á±á±
á±á±á±á± (U+1C40 to U+1C49) |
limb |
Limbu digits | á¥á¥á¥á¥á¥á¥á¥á¥á¥á¥ (U+1946 to U+194F) |
mathbold |
Mathematical bold digits | ðððððððððð (U+1D7CE to U+1D7D7) |
mathdbl |
Mathematical double-struck digits | ððððððððð ð¡ (U+1D7D8 to U+1D7E1) |
mathmono |
Mathematical monospace digits | ð¶ð·ð¸ð¹ðºð»ð¼ð½ð¾ð¿ (U+1D7F6 to U+1D7FF) |
mathsanb |
Mathematical sans-serif bold digits | ð¬ðð®ð¯ð°ð±ð²ð³ð´ðµ (U+1D7EC to U+1D7F5) |
mathsans |
Mathematical sans-serif digits | ð¢ð£ð¤ð¥ð¦ð§ð¨ð©ðªð« (U+1D7E2 to U+1D7EB) |
mlym |
Malayalam digits | ൦൧൨൩൪൫൬àµàµ®àµ¯ (U+0D66 to U+0D6F) |
modi |
Modi digits | ðððððððððð (U+11650 to U+11659) |
mong |
Mongolian digits | á á á á á á á á á á (U+1810 to U+1819) |
mroo |
Mro digits | ð© ð©¡ð©¢ð©£ð©¤ð©¥ð©¦ð©§ð©¨ð©© (U+16A60 to U+16A69) |
mtei |
Meetei Mayek digits | ꯰꯱꯲꯳꯴꯵꯶꯷꯸꯹ (U+ABF0 to U+ABF9) |
mymr |
Myanmar digits | áááááá
áááá (U+1040 to U+1049) |
mymrepka |
Myanmar Eastern Pwo Karen digits | ððððððð ð¡ð¢ð£ (U+116DA to U+116E3) |
mymrpao |
Myanmar Pao digits | ðððððððððð (U+116D0 to U+116D9) |
mymrshan |
Myanmar Shan digits | áááááááááá (U+1090 to U+1099) |
mymrtlng |
Myanmar Tai Laing digits | ꧰꧱꧲꧳꧴꧵꧶꧷꧸꧹ (U+A9F0 to U+A9F9) |
nagm |
Nag Mundari digits | ð°ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ (U+1E4F0 to U+1E4F9) |
newa |
Newa digits | ðððððððððð (U+11450 to U+11459) |
nkoo |
N'Ko digits | ßßßßßß
ßßßß (U+07C0 to U+07C9) |
olck |
Ol Chiki digits | á±á±á±á±á±á±á±á±á±á± (U+1C50 to U+1C59) |
onao |
Ol Onal digits | ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ðº (U+1E5F1 to U+1E5FA) |
orya |
Oriya digits | à¦à§à¨à©àªà«à¬àà®à¯ (U+0B66 to U+0B6F) |
osma |
Osmanya digits | ð ð¡ð¢ð£ð¤ð¥ð¦ð§ð¨ð© (U+104A0 to U+104A9) |
outlined |
Legacy computing outlined digits | ð³°ð³±ð³²ð³³ð³´ð³µð³¶ð³·ð³¸ð³¹ (U+1CCF0 to U+1CCF9) |
rohg |
Hanifi Rohingya digits | ð´°ð´±ð´²ð´³ð´´ð´µð´¶ð´·ð´¸ð´¹ (U+10D30 to U+10D39) |
roman |
Roman upper case numerals | algorithmic |
romanlow |
Roman lowercase numerals | algorithmic |
saur |
Saurashtra digits | ê£ê£ê£ê£ê£ê£ê£ê£ê£ê£ (U+A8D0 to U+A8D9) |
segment |
Legacy computing segmented digits | ð¯°ð¯±ð¯²ð¯³ð¯´ð¯µð¯¶ð¯·ð¯¸ð¯¹ (U+1FBF0 to U+1FBF9) |
shrd |
Sharada digits | ðððððððððð (U+111D0 to U+111D9) |
sind |
Khudawadi digits | ð°ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ (U+112F0 to U+112F9) |
sinh |
Sinhala Lith digits | ෦෧෨෩෪෫෬à·à·®à·¯ (U+0DE6 to U+0DEF) |
sora |
Sora_Sompeng digits | ð°ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ (U+110F0 to U+110F9) |
sund |
Sundanese digits | ᮰᮱᮲᮳᮴᮵᮶᮷᮸᮹ (U+1BB0 to U+1BB9) |
sunu |
Sunuwar digits | ð¯°ð¯±ð¯²ð¯³ð¯´ð¯µð¯¶ð¯·ð¯¸ð¯¹ (U+11BF0 to U+11BF9) |
takr |
Takri digits | ðððððð
ðððð (U+116C0 to U+116C9) |
talu |
New Tai Lue digits | á§á§á§á§á§á§á§á§á§á§ (U+19D0 to U+19D9) |
taml |
Tamil numerals | algorithmic |
tamldec |
Modern Tamil decimal digits | ௦௧௨௩௪௫௬à¯à¯®à¯¯ (U+0BE6 to U+0BEF) |
telu |
Telugu digits | ౦౧౨౩౪౫౬à±à±®à±¯ (U+0C66 to U+0C6F) |
thai |
Thai digits | à¹à¹à¹à¹à¹à¹à¹à¹à¹à¹ (U+0E50 to U+0E59) |
tibt |
Tibetan digits | ༠༡༢༣༤༥༦༧༨༩ (U+0F20 to U+0F29) |
tirh |
Tirhuta digits | ðððððððððð (U+114D0 to U+114D9) |
tnsa |
Tangsa digits | ð«ð«ð«ð«ð«ð«
ð«ð«ð«ð« (U+16AC0 to U+16AC9) |
vaii |
Vai digits | ê ê¡ê¢ê£ê¤ê¥ê¦ê§ê¨ê© (U+A620 to U+A629) |
wara |
Warang Citi digits | ð£ ð£¡ð£¢ð££ð£¤ð£¥ð£¦ð£§ð£¨ð£© (U+118E0 to U+118E9) |
wcho |
Wancho digits | ð°ð±ð²ð³ð´ðµð¶ð·ð¸ð¹ (U+1E2F0 to U+1E2F9) |
There are three special values: native, traditio, and finance, whose meanings are locale-dependent, and will be resolved to the right system depending on the locale. Therefore, the resolvedOptions() methods will never return these values, but Intl.Locale.prototype.numberingSystem will (if provided as input).
References:
Supported time zone identifiers
Supported time zone identifiers can be used for the timeZone option when creating objects such as Intl.DateTimeFormat, as well as for creating Temporal date objects. There are over 400 identifiers in common use so we won't list them. For an exhaustive list of possible identifiers, see the Wikipedia article or the IANA time zone database.
As you browse the list, note that the standardization of Temporal requires browsers to always return the primary identifier in the IANA database, which may change over time. See time zones and offsets for more information. For example, the returned array should contain "Asia/Kolkata" instead of "Asia/Calcutta" because the latter is an alias of the former and they both correspond to India; however, it should contain both "Africa/Abidjan" and "Atlantic/Reykjavik" because they are in different countries, despite the latter also being an alias of the former.
References:
Supported unit identifiers
Below are all values that are commonly supported by browsers for the unit key. These values can be used for the unit option when creating objects such as Intl.NumberFormat. This list is a subset of the CLDR explicitly sanctioned by the ECMA-402 specification, so all implementations should be consistent.
acrebitbytecelsiuscentimeterdaydegreefahrenheitfluid-ouncefootgallongigabitgigabytegramhectarehourinchkilobitkilobytekilogramkilometerlitermegabitmegabytemetermicrosecondmilemile-scandinavianmillilitermillimetermillisecondminutemonthnanosecondouncepercentpetabytepoundsecondstoneterabitterabyteweekyardyear
When specifying units, you can also combine two units with the "-per-" separator. For example, meter-per-second or liter-per-megabyte.
References:
Exceptions
RangeError-
Thrown if an unsupported key was passed as a parameter.
Examples
>Feature testing
You can check that the method is supported by comparing to undefined:
if (typeof Intl.supportedValuesOf !== "undefined") {
// method is supported
}
Get all values for key
To get the supported values for calendar you call the method with the key "calendar".
You can then iterate through the returned array as shown below:
Intl.supportedValuesOf("calendar").forEach((calendar) => {
// "buddhist", "chinese", "coptic", "dangi", etc.
});
The other values are all obtained in the same way:
Intl.supportedValuesOf("collation").forEach((collation) => {
// "compat", "dict", "emoji", etc.
});
Intl.supportedValuesOf("currency").forEach((currency) => {
// "ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", etc.
});
Intl.supportedValuesOf("numberingSystem").forEach((numberingSystem) => {
// "adlm", "ahom", "arab", "arabext", "bali", etc.
});
Intl.supportedValuesOf("timeZone").forEach((timeZone) => {
// "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", etc.
});
Intl.supportedValuesOf("unit").forEach((unit) => {
// "acre", "bit", "byte", "celsius", "centimeter", etc.
});
Invalid key throws RangeError
try {
Intl.supportedValuesOf("someInvalidKey");
} catch (err) {
// RangeError: invalid key: "someInvalidKey"
}
Specifications
| Specification |
|---|
| ECMAScript® 2027 Internationalization API Specification> # sec-intl.supportedvaluesof> |