icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Add tutorial for building ICU4X data

Open sffc opened this issue 3 years ago • 2 comments

We have documentation scattered around a bit. We should update the data_provider.md tutorial to document the full lifecycle of ICU4X data with a focus on clients of ICU4X.

Blocked on #78

sffc avatar Apr 20 '21 01:04 sffc

Moving this from the #873 meta-issue to the #1110 meta-issue.

sffc avatar Oct 21 '21 16:10 sffc

The data build process for client Rust crates can be the following, based on discussion with @robertbastian:

  1. build.rs invokes datagen with a list of keys and locales
  2. An integration test verifies that the extracted keys are consistent with the keys that were passed to datagen

We may want to move toward a datagen.toml file that contains the list of keys, locales, CLDR version, etc., so that:

  1. It can be read from both build.rs and the integration test
  2. To better separate code (build.rs) and data (datagen arguments)

sffc avatar May 28 '22 00:05 sffc

This should be done before the blog post goes out.

sffc avatar Sep 26 '22 18:09 sffc

Fixed by #2678

robertbastian avatar Oct 13 '22 17:10 robertbastian