#cldr #icu #unicode #localization #provider

icu_provider_cldr

Data provider that reads from a CLDR JSON data source

3 releases (breaking)

0.4.0 Nov 2, 2021
0.2.0 Apr 29, 2021
0.1.0 Oct 15, 2020

#22 in #cldr


Used in icu_datagen

Custom license

1MB
16K SLoC

icu_provider_cldr crates.io

icu_provider_cldr contains implementations of the ICU4X DataProvider interface based on the JSON files shipped by CLDR. Create a [CldrPaths] and then pass it into CldrJsonDataProvider.

This crate contains two implementations of [CldrPaths]:

  • [CldrPathsLocal] points to local copies of the CLDR JSON repositories.
  • CldrPathsDownload downloads and caches the CLDR JSON repositories. Requires the "download" feature.

Important: This data provider implementation is not optimized for production use. It is much more efficient if you use FsDataProvider instead.

More Information

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

Dependencies

~4–8MB
~146K SLoC

a