Does localization API support UN M.49

Tests to see if the implementation supports UN M.49. Relies on locales existing in the implementation.

by David Storey

JavaScript

console.clear();
console.log("UN M.49 country/region codes: ");

// Countries where ISO 3166-1 alpha-2 country code exists. Should be redundant, as country is same as language.
console.log("France:");
console.dirxml(new Intl.DateTimeFormat(["fr-250", "en-GB"]).resolvedOptions());
console.log("Germany:");
console.dirxml(new Intl.DateTimeFormat(["de-276", "en-GB"]).resolvedOptions());
console.log("Spain:");
console.dirxml(new Intl.DateTimeFormat(["es-724", "en-GB"]).resolvedOptions());

// Countries where ISO 3166-1 alpha-2 country code exists, but with a different country than the default for that language. Changed fallback for English in UK

console.log("English, UK:");
console.dirxml(new Intl.DateTimeFormat(["en-826", "en-US"]).resolvedOptions());
console.log("English, USA:");
console.dirxml(new Intl.DateTimeFormat(["en-840", "en-GB"]).resolvedOptions());
console.log("English, Canada:");
console.dirxml(new Intl.DateTimeFormat(["en-124", "en-GB"]).resolvedOptions());
console.log("English, Australia:");
console.dirxml(new Intl.DateTimeFormat(["en-036", "en-GB"]).resolvedOptions());
console.log("Spanish, Mexico:");
console.dirxml(new Intl.DateTimeFormat(["es-484", "en-GB"]).resolvedOptions());
console.log("Spanish, Agentina:");
console.dirxml(new Intl.DateTimeFormat(["es-032", "en-GB"]).resolvedOptions());
console.log("Portuguese, Brazil:");
console.dirxml(new Intl.DateTimeFormat(["pt-076", "en-GB"]).resolvedOptions());
console.log("French, Canada:");
console.dirxml(new Intl.DateTimeFormat(["fr-124", "en-GB"]).resolvedOptions());
console.log("French, Belgium:");
console.dirxml(new Intl.DateTimeFormat(["fr-056", "en-GB"]).resolvedOptions());
console.log("French, Swirzerland:");
console.dirxml(new Intl.DateTimeFormat(["fr-756", "en-GB"]).resolvedOptions());
console.log("German, Swirzerland:");
console.dirxml(new Intl.DateTimeFormat(["de-756", "en-GB"]).resolvedOptions());
console.log("German, Austria:");
console.dirxml(new Intl.DateTimeFormat(["de-040",...