demo · v130
Locale matrix
Twelve representative locales × six newly-added Intl.Locale getters (.calendars, .collations, .hourCycles, .numberingSystems, .timeZones, .textInfo). Each cell is a real, live API call run on your browser. Inspect the resulting arrays / objects, compare across locales, and add your own.
columns:
add locale:
methods covered:
.calendars
.collations
.hourCycles
.numberingSystems
.timeZones
.textInfo.direction
each cell shows what new Intl.Locale(tag)[method]() returns on this browser.
click any cell to see the full raw return value:
click a cell
the code
const l = new Intl.Locale("ar-EG-u-nu-arab");
l.calendars; // ["islamic", "gregory", "coptic", …]
l.collations; // ["compat", "emoji", "eor"]
l.hourCycles; // ["h12"]
l.numberingSystems; // ["arab"]
l.timeZones; // ["Africa/Cairo"]
l.textInfo; // { direction: "rtl" }