scottrippey / Smart-Plurals

Defines plural rules for most languages, and a framework for adding your own.
46 stars 1 forks source link

utilize CLDR.js #1

Open H1D opened 9 years ago

H1D commented 9 years ago

Hi! Just an idea. Using CLDR.js you can support literally any language described in spec http://cldr.unicode.org/

scottrippey commented 9 years ago

By the looks of it, CLDR.js is almost identical to this library. But it sounds like CLDR is the defacto source of I18N rules, so that's a big plus.
But since the libraries are almost identical, I'm not sure what good Smart-Plurals would be.
I suppose my Angular filter is a benefit. Perhaps the libraries should be merged.

FYI, my original research was based off of http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/Plural-forms.html which is probably pretty similar to CLDR's rules.

H1D commented 9 years ago

cool.. Well. Decision is up to you =)

ArmorDarks commented 8 years ago

https://github.com/jamesarosen/CLDR.js was closed, it's no longer maintaned. So, maybe it won't hurt to use http://cldr.unicode.org/ indeed?

Anyway, thanks for great library!