Closed Bug 1613713 Opened 4 years ago Closed 4 years ago

Ship Intl.Locale

Categories

(Core :: JavaScript: Internationalization API, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox74 --- wontfix
firefox75 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

(Keywords: dev-doc-complete)

Attachments

(6 files)

Implement canonical form and expose Intl.Locale.

Also reorder "caseFirst" to match the updated spec position.

Parts 3 and 5 will implement the missing canonicalisation steps for variant
and transform extension subtags.

Depends on D61869

Variant subtag canonicalisation is back, but with slightly different semantics
compared to IANA BCP 47 canonicalisation.

Depends on D61870

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

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

Some tests needed to be updated to account for an Intl constructor whose
prototype doesn't have a resolvedOptions method.

Depends on D61873

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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: