JSON Packaging (Approved by the CLDR TC on 2015-03-25)

This page is out of date, see http://cldr.unicode.org/index/downloads#TOC-JSON-Data for details of the JSON data.

Overview

CLDR’s official locale data is, and probably always will be, published in XML format. However, JSON format data is quickly becoming a popular alternative, especially for JavaScript applications. Currently, when a CLDR release is published, we generate the corresponding JSON data ( according to http://cldr.unicode.org/index/cldr-spec/json ) and include additional zip files as part of the CLDR distribution. While the distribution of the data in this way is helpful to some, it would be even more useful for us to create a series of packages that are installable using bower ( see http://bower.io/ for details ). In this way, applications that desire to use the CLDR data in JSON format can simply specify the appropriate packages as a prerequisite, thus eliminating the need to copy and redistribute the data.

Design Goals

Functional Groups and Packages

The existing JSON data for CLDR shall be split into functional groupings as follows:

Locale Coverage Tiers

For each functional group listed above (with the exception of the “core” package), data packages shall be created that define successively larger numbers of locales. The tiers shall be based on the coverage information used in the CLDR survey tool, as defined in http://unicode.org/repos/cldr/trunk/tools/java/org/unicode/cldr/util/data/Locales.txt . For any given language, all the valid CLDR sublocales for that language shall be in package. The following tiers shall be created.

Summary Table of Packages and Dependencies

Package Name Depends On
cldr-core <nothing>
cldr-dates-modern cldr-numbers-modern
cldr-dates-full cldr-dates-modern, cldr-numbers-full
cldr-cal-buddhist-modern cldr-dates-modern
cldr-cal-buddhist-full cldr-dates-full
…<similar pattern for other cldr-cal-* packages>  
cldr-localenames-modern cldr-core
cldr-localenames-full cldr-localenames-modern
cldr-misc-modern cldr-core
cldr-misc-full cldr-misc-modern
cldr-numbers-modern cldr-core
cldr-numbers-full cldr-numbers-modern
cldr-units-modern cldr-core
cldr-units-full cldr-units-modern
cldr-segments-modern cldr-core

Locales by Tier as of CLDR 26 (for reference purposes only)

Tier Locales
modern af, am, ar, az, bg, bn, bs. ca, cs, da, de, en, el, es, et, eu, fa, fil, fi, fr, gl, gu, he, hi, hu, hy, id, is, it, ja, ka, kk, km, kn, ko, ky, lo, lt, lv, mk, ml, mn, ms, mr, my, nb, ne, nl, pa, pl, pt, ro, ru, si, sr, sk, sl, sq, sv, sw, ta, te, th, tr, uk, ur, uz, vi, zh, zu
full All other locales.