← Back to release summary

Intl.Locale.prototype.variants

Category
JavaScript
Type
Chromium catches up
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: Test262 https://github.com/tc39/test262/tree/main/test/intl402/Locale 'intl402/Locale/constructor-getter-order': 'intl402/Locale/constructor-options-throwing-getters': 'intl402/Locale/constructor-options-variants-invalid': 'intl402/Locale/constructor-options-variants-valid': 'intl402/Locale/getters-grandfathered': 'intl402/Locale/getters-missing': 'intl402/Locale/prototype/variants/name': 'intl402/Locale/prototype/variants/prop-desc':

Summary

Add Intl.Locale.prototype.variants as stated in https://tc39.es/ecma402/#sec-Intl.Locale.prototype.variants and also accept "variants" in option bag in Intl.Locale consturctor as in https://tc39.es/ecma402/#sec-updatelanguageid The changes to ECMA402 is merged in https://github.com/tc39/ecma402/pull/960 and the test code in test262 are merged in in https://github.com/tc39/test262/pull/4474/

Motivation

TC39 already approve for the change so it is now part of ECMA402 spec.

Standards & signals

Ecosystem

View on chromestatus.com