How does Data provider access CLDR data? #2876
-
I was exploring about data providers in ICU4X but I'm little bit confused regarding the process of Data Providers. According to my understanding, Data providers can read JSON file and then provide responses accordingly but where is that JSON file present? Do we have to create blob or what? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 26 replies
-
You need to convert CLDR data into a format ICU4X accepts at runtime. You have several choices: JSON, Postcard, and Databake. You might choose a different format depending on your needs.
You can read more in the data management tutorial here: https://github.com/unicode-org/icu4x/blob/main/docs/tutorials/data_management.md |
Beta Was this translation helpful? Give feedback.
You need to convert CLDR data into a format ICU4X accepts at runtime. You have several choices: JSON, Postcard, and Databake. You might choose a different format depending on your needs.
icu4x-datagen
is the tool that does this conversion.You can read more in the data management tutorial here:
https://github.com/unicode-org/icu4x/blob/main/docs/tutorials/data_management.md