Skip to content

Commit

Permalink
Include zh locale in icu data
Browse files Browse the repository at this point in the history
  • Loading branch information
crlf0710 committed Nov 12, 2022
1 parent 9f6c6bd commit 4c24176
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions compiler/rustc_baked_icu_data/src/data/list/and_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> =
("ru", RU),
("tr", TR),
("und", UND),
("zh-Hans", ZH_HANS),
("zh", ZH_ZH_HANS),
("zh-Hans", ZH_ZH_HANS),
("zh-Hant", ZH_HANT),
]);
static EN: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
Expand Down Expand Up @@ -1010,7 +1011,7 @@ static UND: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
special_case: None,
},
]);
static ZH_HANS: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
static ZH_HANT: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
::icu_list::provider::ConditionalListJoinerPattern {
default: unsafe {
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("、", 3u8)
Expand Down Expand Up @@ -1073,18 +1074,18 @@ static ZH_HANS: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
},
::icu_list::provider::ConditionalListJoinerPattern {
default: unsafe {
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
},
special_case: None,
},
::icu_list::provider::ConditionalListJoinerPattern {
default: unsafe {
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
},
special_case: None,
},
]);
static ZH_HANT: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
static ZH_ZH_HANS: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
::icu_list::provider::ConditionalListJoinerPattern {
default: unsafe {
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("、", 3u8)
Expand Down Expand Up @@ -1147,13 +1148,13 @@ static ZH_HANT: &DataStruct = &::icu_list::provider::ListFormatterPatternsV1([
},
::icu_list::provider::ConditionalListJoinerPattern {
default: unsafe {
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
},
special_case: None,
},
::icu_list::provider::ConditionalListJoinerPattern {
default: unsafe {
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
::icu_list::provider::ListJoinerPattern::from_parts_unchecked("", 3u8)
},
special_case: None,
},
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_baked_icu_data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* 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 fallback/likelysubtags@1 fallback/parents@1 fallback/supplement/co@1 \
--format mod -l en es fr it ja pt ru tr zh zh-Hans zh-Hant -k list/and@1 fallback/likelysubtags@1 fallback/parents@1 fallback/supplement/co@1 \
-o src/data
```
*/
Expand Down

0 comments on commit 4c24176

Please sign in to comment.