Ready for Trial: Intl Locale Info in ECMA402

7 views
Skip to first unread message

Frank Tang

unread,
May 7, 2021, 2:15:53 PMMay 7
to blink-dev, Frank Yung-Fong Tang, Mathias Bynens, Mathias Bynens, Shane Carr, Ujjwal Sharma

Contact emails

ft...@google.comsf...@google.com

Explainer

None

Specification

https://tc39.es/proposal-intl-locale-info/

Design docs


https://docs.google.com/document/d/1OwEsvs8VQwvR-ug01xLyIwpgcvUfaP24u9owc7aBKJ4/edit#

Summary

Intl Locale Info API is a new Stage ECMAScript TC39 proposal to enhance the Intl.Locale object by exposing Locale information, such as week data (first day in a week, weekend start day, weekend end day, minimun day in the first week), and text direction hour cycle used in the locale. https://github.com/tc39/proposal-intl-locale-info



Blink component

Blink>JavaScript>Internationalization

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Low- Intl.Locale object is already pre-exist in ECMA402 and implemented by Mozilla. This launch adds 7 get methods on the object.



Gecko: In development Internal API already pre-exist https://bugzilla.mozilla.org/show_bug.cgi?id=1312053 https://firefox-source-docs.mozilla.org/intl/dataintl.html#mozintl-getcalendarinfo-locale https://firefox-source-docs.mozilla.org/intl/dataintl.html#mozintl-getlocaleinfo-locales-options

WebKit: Positive

Web developers: Positive

Ergonomics

Low risk. Intl.Locale is already in ECMA402, adding new methods should be easy to discover.



Activation

Low risk. Intl.Locale is already in ECMA402, adding new methods should be easy to use.



Security

Thew newly added method are getter only. Low risk for security.



Goals for experimentation

None



Ongoing technical constraints

None



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

No

Flag name

harmony_intl_locale_info

Tracking bug

https://bugs.chromium.org/p/v8/issues/detail?id=11638

Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/5566859262820352

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages