← Back to release summary

"numberingSystem" option for Intl.NumberFormat / "calendar" and "numberingSystem" option for Intl.DateTimeFormat

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 80)
Intent stage
Start prototyping

Summary

Allows the calendar and numbering system to be specified in the options object of the DateTimeFormat() and NumberFormat() constructors.

Motivation

A use case for these options are locals with two numbering systems or calendars. The user agent default may be the non-Western one, but in some contexts Western systems are more appropriate. Currently, applications need to parse the BCP 47 language tag. This feature makes it simpler for the developer.

Standards & signals

Docs: https://github.com/tc39/ecma402/pull/175

Explainers: https://github.com/tc39/ecma402/pull/175

View on chromestatus.com