Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Add calendar and numberingSystem options
This patch allows calendar and numberingSystem to be specified in the options bag of the DateTimeFormat and NumberFormat constructors. One use case for these options would be, when working with locales which have two numbering systems and calendars in use--the UA default may be the non-Western one, but in some contexts, it may be appropriate to use the Western one. Currently, without the patch, it would be necessary to parse the BCP 47 language tag in the application, but Intl provides no library to do so. For example, this all occurs in this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1370086 Related bug: tc39#105 . This patch leaves out "collation" because of a lack of clear use cases.
- Loading branch information