Is alternative script available for languages with more than one writing system?
Test to see if ISO 15924 script code is supported. Relies on the UA supporting both scripts for that locale.
by David Storey
JavaScript
console.clear();
console.log("ISO 639-2 language codes with ISO 15924 script code: ");
console.log("Serbian with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["sr-Latn", "en-GB"]).resolvedOptions());
console.log("Serbian with Cyrillic script:");
console.dirxml(new Intl.DateTimeFormat(["sr-Cyrl", "en-GB"]).resolvedOptions());
console.log("Bosnian with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["bs-Latn", "en-GB"]).resolvedOptions());
console.log("Bosnian with Cyrillic script:");
console.dirxml(new Intl.DateTimeFormat(["bs-Cyrl", "en-GB"]).resolvedOptions());
console.log("Uzbek with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["uz-Latn", "en-GB"]).resolvedOptions());
console.log("Uzbek with Cyrillic script:");
console.dirxml(new Intl.DateTimeFormat(["uz-Cyrl", "en-GB"]).resolvedOptions());
console.log("Azeri with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["az-Latn", "en-GB"]).resolvedOptions());
console.log("Azeri with Cyrillic script:");
console.dirxml(new Intl.DateTimeFormat(["az-Cyrl", "en-GB"]).resolvedOptions());
console.log("Inuktitut with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["iu-Latn", "en-GB"]).resolvedOptions());
console.log("Inuktitut with Syllabics:");
console.dirxml(new Intl.DateTimeFormat(["iu-Cans", "en-GB"]).resolvedOptions());
console.log("Tamazight with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["tzm-Latn", "en-GB"]).resolvedOptions());
console.log("Tamazight with Tifinagh script:");
console.dirxml(new Intl.DateTimeFormat(["tzm-Tfng", "en-GB"]).resolvedOptions());