Ship Intl.Locale
Categories
(Core :: JavaScript: Internationalization API, enhancement)
Tracking
()
People
(Reporter: anba, Assigned: anba)
Details
(Keywords: dev-doc-complete)
Attachments
(6 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Implement canonical form and expose Intl.Locale
.
Assignee | ||
Comment 1•5 years ago
|
||
Also reorder "caseFirst" to match the updated spec position.
Assignee | ||
Comment 2•5 years ago
|
||
Parts 3 and 5 will implement the missing canonicalisation steps for variant
and transform extension subtags.
Depends on D61869
Assignee | ||
Comment 3•5 years ago
|
||
Variant subtag canonicalisation is back, but with slightly different semantics
compared to IANA BCP 47 canonicalisation.
Depends on D61870
Assignee | ||
Comment 4•5 years ago
|
||
Unicode extension subtags are now canonicalised for all operations, so we no
longer need the UnicodeExtensionCanonicalForm enum.
Unicode extension types provided through option objects are also canonicalised
to ensure no uncanonicalised locales are exposed. This also avoids triggering
various assertions where we assume we only expose fully canonicalised locales.
Also see: https://github.com/tc39/proposal-intl-locale/issues/96
Depends on D61871
Assignee | ||
Comment 5•5 years ago
|
||
Canonicalises the tlang
subtag of a transform extension per the usual rules
for canonicalising the base name parts of a locale identifier. In addition to
that, deprecated tvalue
subtags are now also replaced with their preferred
replacements according to the alias
data from CLDR.
Depends on D61872
Assignee | ||
Comment 6•5 years ago
|
||
Some tests needed to be updated to account for an Intl
constructor whose
prototype doesn't have a resolvedOptions
method.
Depends on D61873
Updated•5 years ago
|
Pushed by aiakab@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8d97ca7e7b44 Part 1: Update spec references. r=jwalden https://hg.mozilla.org/integration/autoland/rev/714cddfd7134 Part 2: Update comments for UTS 35. r=jwalden https://hg.mozilla.org/integration/autoland/rev/c739b517faa6 Part 3: Add variant subtag canonicalisation. r=jwalden https://hg.mozilla.org/integration/autoland/rev/0f6c508a5789 Part 4: Remove UnicodeExtensionCanonicalForm option. r=jwalden https://hg.mozilla.org/integration/autoland/rev/4f54d05ddbe7 Part 5: Canonicalise transform extension subtags. r=jwalden https://hg.mozilla.org/integration/autoland/rev/c095adf809e5 Part 6: Enable Intl.Locale by default. r=jwalden
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8d97ca7e7b44
https://hg.mozilla.org/mozilla-central/rev/714cddfd7134
https://hg.mozilla.org/mozilla-central/rev/c739b517faa6
https://hg.mozilla.org/mozilla-central/rev/0f6c508a5789
https://hg.mozilla.org/mozilla-central/rev/4f54d05ddbe7
https://hg.mozilla.org/mozilla-central/rev/c095adf809e5
Updated•5 years ago
|
Comment 9•5 years ago
|
||
Announced on Firefox 75 for developers: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/75#JavaScript
Reference docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Locale
Description
•