Intl.getCanonicalLocales()
method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags.Intl.DateTimeFormat.prototype.formatToParts()
method allows locale-aware formatting of strings produced by DateTimeFormat
formatters.