#cldr #icu #unicode #localization

app icu_datagen

Generate data for ICU4X DataProvider

2 releases

0.4.1 Nov 10, 2021
0.4.0 Nov 2, 2021

#18 in #cldr

35 downloads per month

Custom license

1.5MB
11K SLoC

icu_datagen crates.io

icu_datagen contains command-line tools to generate and process ICU4X data.

The tools include:

  1. icu4x-datagen: Read source data (CLDR JSON) and dump ICU4X-format data.
  2. icu4x-testdata-download: Download fresh CLDR JSON for testdata.

More details on each tool can be found by running --help.

Examples

Generate ICU4X JSON file tree:

# Run from the icu4x project folder
$ cargo run --bin icu4x-datagen -- \
   --cldr-tag 39.0.0 \
   --all-keys \
   --all-locales \
   --out /tmp/icu4x_data/json

Generate ICU4X Bincode blob (single file):

# Run from the icu4x project folder
$ cargo run --bin icu4x-datagen -- \
   --cldr-tag 39.0.0 \
   --all-keys \
   --all-locales \
   --format blob \
   --out /tmp/icu4x_data/icu4x_data.postcard

Generate ICU4X Bincode file tree:

# Run from the icu4x project folder
$ cargo run --bin icu4x-datagen -- \
   --cldr-tag 39.0.0 \
   --all-keys \
   --all-locales \
   --syntax bincode \
   --out /tmp/icu4x_data/bincode

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.

Dependencies

~19MB
~354K SLoC

-Ca