Skip to content

Commit

Permalink
CLDR-14258 restructure and script for monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Nov 5, 2020
1 parent 7b6b42d commit 409e230
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 125 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/bower_components/
/node_modules/

.DS_Store
/cldr-json
61 changes: 18 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ for instructions.

## Status
Latest official release is version 37.0.0, published on 2020-04-23
Version 38 data is being updated

## Tags

Each repository is tagged with the release it pertains to, for example `37.0.0`.
Previously, each repository was tagged with the release it pertains to, for example `37.0.0`.
Moving forward, only the `cldr-json` repo will be used, and it will contain all data in a single tag.

## Licensing

Expand All @@ -39,59 +41,32 @@ This project requires the following other projects to run:

Because the CLDR is so large and contains so many different types of information, the JSON data
here is grouped into packages by functionality. For each type of functionality, there are two
available packages: The "[modern][]" packages, which contain the set of locales listed as modern
coverage targets by the CLDR subcomittee, and the "[full][]" packages, which contain the complete
available packages: The "modern" packages, which contain the set of locales listed as modern
coverage targets by the CLDR subcomittee, and the "full" packages, which contain the complete
set of locales, including those in the corresponding modern packages. The functional groups are:

- **[cldr-core][]** – Basic CLDR supplemental data — only one package here, no "full" and "modern".
- **[cldr-dates][]** – Data for date/time formatting, including data for Gregorian calendar.
Requires that the corresponding **[cldr-numbers][]** package be installed as well.
- **cldr-cal-[type]** – CLDR data for non-Gregorian calendars. [type] is one of the supported non-Gregorian calendar types in CLDR:
[buddhist][], [chinese][], [coptic][], [dangi][], [ethiopic][], [hebrew][], [indian][], [islamic][], [japanese][], [persian][], or [roc][].
- **[cldr-localenames][]** – Translated versions of locale display name elements: languages, scripts, territories, and variants.
- **[cldr-misc][]** – Other CLDR data not defined elsewhere.
- **[cldr-numbers][]** – Data for number formatting.
- **[cldr-rbnf][]** – Rule Based Number Formatting data — only one package here, no "full" and "modern".
- **[cldr-segments][]** – Line breaking data from Unicode's [ULI project](http://uli.unicode.org/)
- **[cldr-units][]** – Data for units formatting.
- **cldr-core** – Basic CLDR supplemental data — only one package here, no "full" and "modern".
- **cldr-dates** – Data for date/time formatting, including data for Gregorian calendar.
Requires that the corresponding **cldr-numbers** package be installed as well.
- **cldr-cal-_type_** – CLDR data for non-Gregorian calendars. _type_ is one of the supported non-Gregorian calendar types in CLDR: buddhist, chinese, coptic, dangi, ethiopic, hebrew, indian, islamic, japanese, persian, or roc.
- **cldr-localenames** – Translated versions of locale display name elements: languages, scripts, territories, and variants.
- **cldr-misc** – Other CLDR data not defined elsewhere.
- **cldr-numbers** – Data for number formatting.
- **cldr-rbnf** – Rule Based Number Formatting data — only one package here, no "full" and "modern".
- **cldr-segments** – Line breaking data from Unicode's [ULI project](http://uli.unicode.org/)
- **cldr-units** – Data for units formatting.

## Installation

Installation using [NPM](https://www.npmjs.com):
Installation using [npm](https://www.npmjs.com):

$ npm install <package-name> , where <package-name> is one of the package names mentioned above, for example:

$ npm install cldr-dates-full

Installation using [bower](http://bower.io):

$ bower install <package-name> , where <package-name> is one of the package names mentioned above, for example:

$ bower install cldr-dates-full
(Note that bower is deprecated, please use npm.)

## Bug reports

CLDR does NOT use Github's issue tracking system to track bugs. If you find an error in
CLDR does not use Github's issue tracking system to track bugs. If you find an error in
the data contained here, please file a new ticket at [Unicode Jira](https://unicode-org.atlassian.net/projects/CLDR/issues)

[cldr-core]: https://github.com/unicode-cldr/cldr-core
[cldr-dates]: https://github.com/unicode-cldr?q=cldr-dates
[cldr-localenames]: https://github.com/unicode-cldr?q=cldr-localenames
[cldr-misc]: https://github.com/unicode-cldr?q=cldr-misc
[cldr-numbers]: https://github.com/unicode-cldr?q=cldr-numbers
[cldr-rbnf]: https://github.com/unicode-cldr/cldr-rbnf
[cldr-segments]: https://github.com/unicode-cldr?q=cldr-segments
[cldr-units]: https://github.com/unicode-cldr?q=cldr-units
[buddhist]: https://github.com/unicode-cldr?q=cldr-cal-buddhist
[chinese]: https://github.com/unicode-cldr?q=cldr-cal-chinese
[coptic]: https://github.com/unicode-cldr?q=cldr-cal-coptic
[dangi]: https://github.com/unicode-cldr?q=cldr-cal-dangi
[ethiopic]: https://github.com/unicode-cldr?q=cldr-cal-ethiopic
[hebrew]: https://github.com/unicode-cldr?q=cldr-cal-hebrew
[indian]: https://github.com/unicode-cldr?q=cldr-cal-indian
[islamic]: https://github.com/unicode-cldr?q=cldr-cal-islamic
[japanese]: https://github.com/unicode-cldr?q=cldr-cal-japanese
[persian]: https://github.com/unicode-cldr?q=cldr-cal-persian
[roc]: https://github.com/unicode-cldr?q=cldr-cal-roc
[modern]: https://github.com/unicode-cldr?q=modern
[full]: https://github.com/unicode-cldr?q=full
82 changes: 0 additions & 82 deletions build.xml

This file was deleted.

24 changes: 24 additions & 0 deletions cldr-generate-json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
#
# Copyright © 1991-2020 Unicode, Inc. All rights reserved. Distributed under
# the Terms of Use in http://www.unicode.org/copyright.html.
#
# Creates JSON data under ./cldr-json in this directory.

CLDR_DIR=../cldr
OUT=./cldr-json
INDATA=../cldr-staging/production

mkdir -p -v ${OUT}
MAIN_CLASS=org.unicode.cldr.json.Ldml2JsonConverter
export MAVEN_OPTS="-Xmx8192m -XX:MaxPermSize=1024m -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=${MAIN_CLASS}"
MVN="mvn --file=${CLDR_DIR}/tools/pom.xml"
MVN_COMPILE="${MVN} compile"
MVN_EXEC="${MVN} -DCLDR_DIR=${INDATA} exec:java -pl java"

set -x
${MVN_COMPILE} || exit 1

for type in supplemental segments rbnf main; do
${MVN_EXEC} -Dexec.args="-p true -o false -r true -t ${type} -d ${OUT} -s contributed" || exit 1
done

0 comments on commit 409e230

Please sign in to comment.