Migrate diagnostics list output to use icu list formatter.
This commit is contained in:
parent
42d3bda08c
commit
a775004322
7 changed files with 296 additions and 28 deletions
|
@ -5,5 +5,6 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
icu_list = "1.0.0"
|
||||
icu_locid = "1.0.0"
|
||||
icu_provider = "1.0.1"
|
||||
litemap = "0.6.0"
|
||||
|
|
|
@ -2,16 +2,30 @@
|
|||
//!
|
||||
#![allow(elided_lifetimes_in_paths)]
|
||||
|
||||
// generated with:
|
||||
// ```text
|
||||
// icu4x-datagen -W --pretty --fingerprint --use-separate-crates --cldr-tag latest --icuexport-tag latest \
|
||||
// --format mod -l en es fr it ja pt ru tr zh-Hans zh-Hant -k list/and@1 -o src/data
|
||||
// ```
|
||||
/* generated with:
|
||||
```text
|
||||
icu4x-datagen -W --pretty --fingerprint --use-separate-crates --cldr-tag latest --icuexport-tag latest \
|
||||
--format mod -l en es fr it ja pt ru tr zh-Hans zh-Hant -k list/and@1 -o src/data
|
||||
```
|
||||
*/
|
||||
|
||||
mod data;
|
||||
|
||||
pub use data::BakedDataProvider;
|
||||
|
||||
pub fn baked_data_provider() -> BakedDataProvider {
|
||||
pub const fn baked_data_provider() -> BakedDataProvider {
|
||||
data::BakedDataProvider
|
||||
}
|
||||
|
||||
pub mod supported_locales {
|
||||
pub const EN: icu_locid::Locale = icu_locid::locale!("en");
|
||||
pub const ES: icu_locid::Locale = icu_locid::locale!("es");
|
||||
pub const FR: icu_locid::Locale = icu_locid::locale!("fr");
|
||||
pub const IT: icu_locid::Locale = icu_locid::locale!("it");
|
||||
pub const JA: icu_locid::Locale = icu_locid::locale!("ja");
|
||||
pub const PT: icu_locid::Locale = icu_locid::locale!("pt");
|
||||
pub const RU: icu_locid::Locale = icu_locid::locale!("ru");
|
||||
pub const TR: icu_locid::Locale = icu_locid::locale!("tr");
|
||||
pub const ZH_HANS: icu_locid::Locale = icu_locid::locale!("zh-Hans");
|
||||
pub const ZH_HANT: icu_locid::Locale = icu_locid::locale!("zh-Hant");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue