Coder Social home page Coder Social logo

Comments (4)

eemeli avatar eemeli commented on June 22, 2024 1

I can probably expand my intl-pluralrules polyfill to support this. @sffc please let me know once there's something like a spec to start playing around with?

from proposal-intl-numberformat-v3.

jswalden avatar jswalden commented on June 22, 2024

UTS 35 briefly discusses plural rules for ranges: https://unicode.org/reports/tr35/tr35-numbers.html#Plural_Ranges

from proposal-intl-numberformat-v3.

sffc avatar sffc commented on June 22, 2024

The spec is here:

https://unicode.org/reports/tr35/tr35-numbers.html#Plural_Ranges

The data is here:

https://github.com/unicode-org/cldr/blob/master/common/supplemental/pluralRanges.xml

from proposal-intl-numberformat-v3.

eemeli avatar eemeli commented on June 22, 2024

By spec I actually meant a spec for the PluralRules.prototype.selectRange()JS function, but I can presume that it's something like (start: number, end: number): 'zero'|'one'|'two'|'few'|'many'|'other' to start with, and make up stuff about errors.

As a first step I'll need to add the data to make-plural, which is what intl-pluralrules internally uses. While starting at that, I noticed that the cldr-core npm package does not include the pluralRanges data. I'll add a ticket on the CLDR Jira about this.

from proposal-intl-numberformat-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.