Re: [v8-users] Intent to Ship: Intl.PluralRules

36 views
Skip to first unread message

Daniel Ehrenberg

unread,
Sep 10, 2017, 1:17:22 PM9/10/17
to v8-u...@googlegroups.com, blink-dev
+blink-dev

On Sun, Sep 10, 2017 at 7:16 PM, Daniel Ehrenberg
<litt...@chromium.org> wrote:
> ECMA 402 (Intl) tracks its proposals separately. You can see it listed
> as Stage 3 at https://github.com/tc39/ecma402/ . There is a full
> implementation in Firefox behind a flag. I'd say this spec is pretty
> stable.
>
> Dan
>
> On Fri, Sep 8, 2017 at 7:39 PM, Adam Klein <ad...@chromium.org> wrote:
>> What's the stability state of the spec? I don't see it on
>> https://github.com/tc39/proposals
>>
>> On Fri, Sep 8, 2017 at 9:41 AM, Josh Wolfe <jwo...@igalia.com> wrote:
>>>
>>> # Contact emails
>>>
>>> jwo...@igalia.com
>>> litt...@chromium.org
>>>
>>> # Spec
>>>
>>> https://rawgit.com/caridy/intl-plural-rules-spec/master/index.html
>>>
>>> # Summary
>>>
>>> Intl.PluralRules is a new API which exposes language-dependent data on
>>> pluralization forms of numbers. Given a locale and a number,
>>> Intl.PluralRules outputs a category, which can then be used for
>>> selection of the pluralization form of surrounding text.
>>>
>>> # Motivation
>>>
>>> In English, 101st ends with "st" while 111th ends with "th". The algorithm
>>> for
>>> determining the proper ordinal suffix is non-trivial and locale specific.
>>> A
>>> proper international solution is implemented in ICU, and Intl.PluralRules
>>> exposes this solution to JavaScript developers.
>>>
>>> # Interoperability risk
>>>
>>> * Firefox: In development
>>> * Edge: No public signals
>>> * Safari: No public signals
>>> * Web developers: Positive
>>>
>>> # Compatibility risk
>>>
>>> Low compatibility risk, as this feature is exposed through a new field
>>> `Intl.PluralRules`.
>>>
>>> # Ongoing technical constraints
>>>
>>> None
>>>
>>> # Will this feature be supported on all six Blink platforms (Windows, Mac,
>>> Linux, Chrome OS, Android, and Android WebView)?
>>>
>>> Yes
>>>
>>> # OWP launch tracking bug
>>>
>>> https://bugs.chromium.org/p/v8/issues/detail?id=5601
>>>
>>> # Link to entry on the Chrome Platform Status
>>>
>>> https://www.chromestatus.com/features/5653874773852160
>>>
>>> --
>>> --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.

Adam Klein

unread,
Sep 11, 2017, 5:30:27 PM9/11/17
to Daniel Ehrenberg, v8-users, blink-dev
Thanks, from the spec-stabilization side this sounds fine to me.

Given that we'd be first to ship, I wonder if you have any more background on the Firefox status: the intent lists it as "in development" there, but https://bugzilla.mozilla.org/show_bug.cgi?id=1270146 has been closed, and says it's "Fixed in Firefox 53". But I'm running Firefox 55 locally and I don't see it shipped there.

+blink-dev

>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> --
>> 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

>> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKtSNYMCovuxGNfgbS427qVfA0Twm5b%3DAnneMKEDaeDMPoJcxA%40mail.gmail.com.


m_k...@ga2.so-net.ne.jp

unread,
Sep 12, 2017, 3:45:51 AM9/12/17
to blink-dev, litt...@chromium.org, v8-u...@googlegroups.com
This implementation is for SpiderMoneky shell only with addIntlExtras(Intl).   It isn't available on Gecko yet.

-- Makoto Kato

2017年9月12日火曜日 6時30分27秒 UTC+9 Adam Klein:
+blink-dev

>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> --
>> 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

>> For more options, visit https://groups.google.com/d/optout.

--

Daniel Ehrenberg

unread,
Sep 12, 2017, 5:35:55 PM9/12/17
to m_k...@ga2.so-net.ne.jp, Zbigniew Braniecki (Gandalf), blink-dev, v8-u...@googlegroups.com
I asked Zbigniew Braniecki about the status of
Intl.NumberFormat.prototype.formatToParts and PluralRules, and he told
me,

> Both are ready and need to be exposed. We've been waiting for them to reach stage 4 to expose them to the Web
> NumberFormat.formatToParts is behind the flag - http://searchfox.org/mozilla-central/source/js/src/builtin/Intl.cpp#1639
> and PluralRules is exposed on mozIntl (which is our chrome-only API for UI internationalization that extends Intl API) - http://searchfox.org/mozilla-central/source/toolkit/components/mozintl/mozIntl.js#73
> With you guys having land both I think we can expose them now. I'm happy to work on the patch next week :)

In particular, Mozilla has been pushing these proposals for some time,
and has been held back by lack of buy-in from other browser vendors.

Dan

Adam Klein

unread,
Sep 12, 2017, 7:55:34 PM9/12/17
to Daniel Ehrenberg, m_k...@ga2.so-net.ne.jp, Zbigniew Braniecki (Gandalf), blink-dev, v8-users
Thanks, with that background this LGTM to ship.

Reply all
Reply to author
Forward
0 new messages