Intent to Implement: "numberingSystem" option for Intl.NumberFormat / "calendar" and "numberingSystem" option for Intl.DateTimeFormat

11 views
Skip to first unread message

Frank Tang

unread,
May 14, 2019, 4:33:20 PM5/14/19
to blink-dev, v8-users, v8-...@googlegroups.com, Adam Klein, Sathya Gunasekaran, Jakob Kummerow, Nebojša Ćirić
ft...@chromium.org,js...@chromium.org https://github.com/tc39/ecma402/pull/175 Specification: https://github.com/tc39/ecma402/pull/175 https://github.com/tc39/ecma402/pull/175 No need for TAG review since the TC39 / ECMA402 process provide oversight. 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. This feature make it simpler for the developer. See https://github.com/tc39/ecma402/pull/175 for more details.
The PR in https://github.com/tc39/ecma402/pull/175 is in last stage to be merged into ECMA402. Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signals Small. Both Intl object already provide the underline format functionality by reading calendar ("ca") and numberingSystem ("nu") from the locale. This feature only add a tiny option reading step Low. A lot of users already use these two API . New Javascript code which follow this change running on an old version of browser which does not support this browser will format the number and/or date in different result. But users should still be able to understand these output. None
No additional debugging support required. Yes Yes Tests will be added to test262 before launching https://www.chromestatus.com/features/5440249461211136

Mathias Bynens

unread,
May 14, 2019, 4:44:01 PM5/14/19
to v8-users, blink-dev, v8-...@googlegroups.com, Adam Klein, Sathya Gunasekaran, Jakob Kummerow, Nebojša Ćirić
LGTM

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAOcELL_AamuY_jQBmqQjLUW7rswNNih3AQ2SxJ%2BG8CP4r%2Bn9GQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages