From 68d3069dc3592b72a1be989ed596f1da689ddf40 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:00:33 +0200 Subject: [PATCH] [I10n] Improve Chinese (zh-CN) locale (@headironc) (#12250) Signed-off-by: headiron Co-authored-by: headiron Co-authored-by: delangle Co-authored-by: Lukas --- docs/data/date-pickers/localization/data.json | 2 +- packages/x-date-pickers/src/locales/zhCN.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data/date-pickers/localization/data.json b/docs/data/date-pickers/localization/data.json index 0f318ed425bd4..12a0a3fe984d2 100644 --- a/docs/data/date-pickers/localization/data.json +++ b/docs/data/date-pickers/localization/data.json @@ -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" }, diff --git a/packages/x-date-pickers/src/locales/zhCN.ts b/packages/x-date-pickers/src/locales/zhCN.ts index ec77887c5bed7..fd1eddbe14254 100644 --- a/packages/x-date-pickers/src/locales/zhCN.ts +++ b/packages/x-date-pickers/src/locales/zhCN.ts @@ -6,7 +6,7 @@ const views: Record = { hours: '小时', minutes: '分钟', seconds: '秒', - meridiem: '子午线', + meridiem: '十二小时制', }; const zhCNPickers: Partial> = { @@ -63,7 +63,7 @@ const zhCNPickers: Partial> = { value !== null && utils.isValid(value) ? `选择时间,已选择${utils.format(value, 'fullTime')}` : '选择时间', - // fieldClearLabel: 'Clear value', + fieldClearLabel: '清除', // Table labels timeTableLabel: '选择时间',