scottrippey/Smart-Plurals

utilize CLDR.js

Opened this issue · 3 comments

H1D commented

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

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

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

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!