Data schema for ICU4X #174
Labels
A-design
Area: Architecture or design
C-data-infra
Component: provider, datagen, fallback, adapters
question
Unresolved questions; type unclear
I've so far left the question of the ICU4X data schema a bit undefined. I wanted to discuss this in more detail now.
I was thinking of something along the lines of
/category/key/[payload/]locale
, followed by a metadata block that includes the hunk. Potential new names that are more domain-specific:/category/subcategory/[flavor/]locale
.Why feature-first and not locale-first?
For example:
This structure can optionally be broken down onto the filesystem in order to get more manageable file sizes. The filesystem structure can also be used to serve this as static data from a HTTP server.
To generate this schema, we will need a tool that transforms from CLDR (either XML or JSON). Ideally that tool would be written in Rust, as it could depend on ICU4X, e.g. to process data into a more convenient form.
@zbraniecki @nciric
The text was updated successfully, but these errors were encountered: