For Firefox 75, we intend to ship the Intl.Locale ECMA-402 proposal.
Summary:
Intl.Locale allows to parse and manipulate language tags in a user-friendly way.
For example:
let loc = new Intl.Locale("pl-u-hc-h12", {
calendar: 'gregory'
});
console.log(loc.language); // "pl"
console.log(loc.hourCycle); // "h12"
console.log(loc.calendar); // "gregory"
console.log(loc.toString()); // "pl-u-ca-gregory-hc-h12"
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1613713
Standard: https://github.com/tc39/proposal-intl-locale
Platform coverage: All
Preference: None
DevTools bug: None, because no extra support is needed for devtools.
Other browsers: Shipping in Chrome
<https://v8.dev/blog/v8-release-74#intl.locale>.
Tests: Covered in test262, the ECMAScript conformance test suite. In tree
stored in
js/src/tests/test262, upstream repository is <https://github.com/tc39/test262>.
Secure contexts: JavaScript language features should be enabled everywhere.
Is this feature enabled by default in sandboxed iframes: Yes, because it
doesn't affect sandboxing.
How stable is the spec: The most recent specification changes only covered
edge-cases concerning
language tag canonicalisation, the overall proposal has been stable since
months.
- André
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform