Display date to see if alternative scripts are available

Print out the date in long format to test to see if the script tag is supported and a locale using it is supported.

by David Storey

JavaScript

var date = new Date(),
    options = { weekday: "long", year: "numeric", month: "long", day: "numeric" };

console.clear();

console.log("ISO 639-2 language codes with ISO 15924 script code: ");

console.log("Serbian with Latin script: \n" +
            new Intl.DateTimeFormat(["sr-Latn", "en-GB"], options).format(date));
console.log("Serbian with Cyrillic script: \n" +
            new Intl.DateTimeFormat(["sr-Cyrl", "en-GB"], options).format(date));

console.log("Bosnian with Latin script: \n" +
            new Intl.DateTimeFormat(["bs-Latn", "en-GB"], options).format(date));
console.log("Bosnian with Cyrillic script: \n" +
            new Intl.DateTimeFormat(["bs-Cyrl", "en-GB"], options).format(date));

console.log("Uzbek with Latin script: \n" +
            new Intl.DateTimeFormat(["uz-Latn", "en-GB"], options).format(date));
console.log("Uzbek with Cyrillic script: \n" +
            new Intl.DateTimeFormat(["uz-Cyrl", "en-GB"], options).format(date));

console.log("Azeri with Latin script: \n" +
            new Intl.DateTimeFormat(["az-Latn", "en-GB"], options).format(date));
console.log("Azeri with Cyrillic script: \n" +
            new Intl.DateTimeFormat(["az-Cyrl", "en-GB"], options).format(date));

console.log("Inuktitut with Latin script: \n" +
            new Intl.DateTimeFormat(["iu-Latn", "en-GB"], options).format(date));
console.log("Inuktitut with Syllabics: \n" +
            new Intl.DateTimeFormat(["iu-Cans", "en-GB"], options).format(date));

console.log("Tamazight with Latin script: \n" +
            new Intl.DateTimeFormat(["tzm-Latn", "en-GB"], options).format(date));
console.log("Tamazight with Tifinagh script: \n" +
            new Intl.DateTimeFormat(["tzm-Tfng", "en-GB"], options).format(date));