Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official full JSON of CDLR #15

Open
ragulka opened this issue Apr 14, 2014 · 8 comments
Open

Official full JSON of CDLR #15

ragulka opened this issue Apr 14, 2014 · 8 comments

Comments

@ragulka
Copy link

ragulka commented Apr 14, 2014

CLDR release 25 brings the full CLDR data in JSON format: http://unicode.org/Public/cldr/25/

Any plans to use it? Will it affect this library?

@papandreou
Copy link
Owner

Ah, that's good news. I haven't taken a thorough look at the JSON format yet, but I sincerely hope it removes the need for node-cldr, since it's mostly an XML-to-JSON converter that knows how to resolve CLDR's weird <alias> nodes. If those aren't present in the JSON, I guess the only value this library is adding is the ability to generate plural and RBNF functions, which should then logically move into separate libraries.

What do you think? Have you tried working with the official JSON yet?

@ragulka
Copy link
Author

ragulka commented Apr 19, 2014

Yes, I've tried it. It looks good. It's huge though (450MB unzipped). There is some discussion about perhaps creating a library for extracting only the parts you need and perhaps even a CDN on the Globalize project: globalizejs/globalize#224 (comment)

@Nemo64
Copy link

Nemo64 commented Apr 19, 2014

I think it is still nice to have a library to ask for data instead of parsing a json file directly. Also it is nice as a dependency! I haven't looked all too deeply into it though.

@jzaefferer
Copy link

Since Globalize was already mentioned: The new version based on CLDR uses this project to deal with CLDR: https://github.com/rxaviers/cldrjs

@ericf
Copy link

ericf commented Sep 22, 2014

One aspect of where features in this lib would still be needed is generating the plural rule functions, since the plural rules are defined in strings.

@rxaviers
Copy link

Perhaps this could help: https://github.com/eemeli/make-plural.js translates Unicode CLDR pluralization rules into executable JavaScript.

@cburatto
Copy link

Stopping by to inform that since CLDR 27 (release notes: http://cldr.unicode.org/index/downloads/cldr-27 ) JSON data is available on GITHUB only:

https://github.com/unicode-cldr/cldr-json

@rotsee
Copy link
Collaborator

rotsee commented Feb 27, 2018

On a related note: https://github.com/rxaviers/cldr-data-npm

Allow i18n libraries to define CLDR data as versioned "peer" dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants