Skip to content

Commit

Permalink
[I10n] Improve Chinese (zh-CN) locale (@headironc) (#12250)
Browse files Browse the repository at this point in the history
Signed-off-by: headiron <[email protected]>
Co-authored-by: headiron <[email protected]>
Co-authored-by: delangle <[email protected]>
Co-authored-by: Lukas <[email protected]>
  • Loading branch information
4 people authored Feb 29, 2024
1 parent d2bb170 commit 68d3069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"languageTag": "zh-CN",
"importName": "zhCN",
"localeName": "Chinese (Simplified)",
"missingKeysCount": 1,
"missingKeysCount": 0,
"totalKeysCount": 37,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/zhCN.ts"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/x-date-pickers/src/locales/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const views: Record<TimeViewWithMeridiem, string> = {
hours: '小时',
minutes: '分钟',
seconds: '秒',
meridiem: '子午线',
meridiem: '十二小时制',
};

const zhCNPickers: Partial<PickersLocaleText<any>> = {
Expand Down Expand Up @@ -63,7 +63,7 @@ const zhCNPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `选择时间,已选择${utils.format(value, 'fullTime')}`
: '选择时间',
// fieldClearLabel: 'Clear value',
fieldClearLabel: '清除',

// Table labels
timeTableLabel: '选择时间',
Expand Down

0 comments on commit 68d3069

Please sign in to comment.