open-i18n / rust-unic

UNIC: Unicode and Internationalization Crates for Rust
https://crates.io/crates/unic
Other
234 stars 24 forks source link

[Tracker] Implement Territory modules #234

Open behnam opened 5 years ago

behnam commented 5 years ago

This model is going to be directly based on ISO 3166-1, ISO 3166-2 and M-49 data sets, with addition of private-use cases from CLDR (like QO and its relationship) for compatibility.

Model

The single Territory model will represent all levels of world/country regions, including:

This will be similar to the region part of BCP-47 codes, plus the Subdivision (sd) Unicode extension to it.

Data

We need proper data sources to build this. The data sources should be kept up-to-date in sync with their source Registration/Maintenance Authorities (and not based on a software release schedule), and the compiled data should be kept up-to-date as well with clear logic and automated updates.