Cdnjs: [Request] Unicode CLDR JSON data

Created on 2 Jan 2017  路  16Comments  路  Source: cdnjs/cdnjs

This request might be outside of the scope of CDNJS, but I thought it was worth a shot.

Unicode CLDR data is needed for globalization. The Globalize library uses this data in its internationalization and localization tools. Currently, to get the data, globalize uses npm to download the zip files directly from the unicode server, and then expand and save all 250+ megabytes of files locally.

The main issue is that most of the time you don't need the entire data set to get what you need. The folks at Unicode do not plan on providing the unzipped JSON data through a CDN (ref); but they do have all of the JSON files saved in their GitHub unicode-cldr organization across 30+ repositories (only 19 are necessary if you want to provide the "full" data set; which includes the "modern" packages).

So my questions are:

  • Would it be possible to provide JSON only data through CDNJS?
  • Can you combine the data across 19 repositories into one location, or would it be easier to gather updates directly from the six zip files provided by the unicode server?
  • Even the combined "popularity" of each GitHub data repo does not meet the needed requirement of 100 stars/watchers to be added to CDNJS, but Globalize does meet it.

Library name: Unicode CLDR JSON Data
Git repository url:

CLDR-JSON has the following list of repositories that contain data which would need to be included (only showing "full" packages):

License: Unicode license
Official homepage: http://cldr.unicode.org/index

CC: @rxaviers

Server - configuration Under Consideration 馃彿 Library Request

Most helpful comment

I plan on adding JSON (and source maps) to the allowed content types.

All 16 comments

cc @cdnjs/team-cdnjs @terinjokes

Do we even support .json files on the cdn right now?

Every repo should have a package.json.

@Mottie they do but the return a 403 Forbidden currently.

@drewfreyling we don't, need help from Cloudflare, since we don't run our own origin server right now.

@drewfreyling: Do we even support .json files on the cdn right now?
@PeterDaveHello: @drewfreyling we don't, need help from Cloudflare, since we don't run our own origin server right now.

Should this be a separate issue?

@pkra No.

terinjokes added Server - configuration Under Consideration labels

Thanks!

I plan on adding JSON (and source maps) to the allowed content types.

Any news on this, @terinjokes ?

Will we get that soon? The problem for us is, that the generation of MathJax's speech output is partially broken, which very much affects accessibility.

@terinjokes any news on this? It would be great to finally have json files supported no cdnjs.

@MattIPv4 would you please help contact with Cloudflare again by the support ticket to see if there is any possibility that we can have it? Thanks a lot.

@PeterDaveHello What needs to be done by them, just adding JSON files to the whitelist?

@MattIPv4 yes, you're right!

@Mottie @pkra @PeterDaveHello This has been resolved as part of #13145 and .json files are now served on the cdnjs.cloudflare.com domain 馃帀

Was this page helpful?
0 / 5 - 0 ratings