From 5683ce8e2ac57c621bc03b712d879f7132aaf982 Mon Sep 17 00:00:00 2001 From: Archer Leung Date: Sun, 24 Nov 2024 00:08:53 +0800 Subject: [PATCH 1/2] feat: improve Chinese (zh-CN) locale about prompt control labels --- docs/data/data-grid/localization/data.json | 2 +- packages/x-data-grid/src/locales/zhCN.ts | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index 6f04a8ae96ec..f36d84f29e31 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -35,7 +35,7 @@ "languageTag": "zh-CN", "importName": "zhCN", "localeName": "Chinese (Simplified)", - "missingKeysCount": 10, + "missingKeysCount": 0, "totalKeysCount": 132, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhCN.ts" }, diff --git a/packages/x-data-grid/src/locales/zhCN.ts b/packages/x-data-grid/src/locales/zhCN.ts index 7725372ac5df..2e01567f1a3a 100644 --- a/packages/x-data-grid/src/locales/zhCN.ts +++ b/packages/x-data-grid/src/locales/zhCN.ts @@ -31,15 +31,15 @@ const zhCNGrid: Partial = { toolbarQuickFilterDeleteIconLabel: '清除', // Prompt toolbar field - // toolbarPromptControlPlaceholder: 'Type a prompt…', - // toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…', - // toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…', - // toolbarPromptControlLabel: 'Prompt input', - // toolbarPromptControlRecordButtonDefaultLabel: 'Record', - // toolbarPromptControlRecordButtonActiveLabel: 'Stop recording', - // toolbarPromptControlSendActionLabel: 'Send', - // toolbarPromptControlSendActionAriaLabel: 'Send prompt', - // toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.', + toolbarPromptControlPlaceholder: '输入提示词', + toolbarPromptControlWithRecordingPlaceholder: '输入提示词或点击录音', + toolbarPromptControlRecordingPlaceholder: '正在录音...', + toolbarPromptControlLabel: '提示词输入', + toolbarPromptControlRecordButtonDefaultLabel: '录音', + toolbarPromptControlRecordButtonActiveLabel: '停止录音', + toolbarPromptControlSendActionLabel: '发送', + toolbarPromptControlSendActionAriaLabel: '发送提示词', + toolbarPromptControlErrorMessage: '处理请求时出现错误。请使用其他提示词再试。', // Export selector toolbar button text toolbarExport: '导出', @@ -53,7 +53,7 @@ const zhCNGrid: Partial = { columnsManagementNoColumns: '没有列', columnsManagementShowHideAllText: '显示/隐藏所有', columnsManagementReset: '重置', - // columnsManagementDeleteIconLabel: 'Clear', + columnsManagementDeleteIconLabel: '清除', // Filter panel text filterPanelAddFilter: '添加筛选器', From 17d61a534f51129f65045a65ad6ffcde69ec74cf Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 23 Nov 2024 17:43:34 +0100 Subject: [PATCH 2/2] Update packages/x-data-grid/src/locales/zhCN.ts Signed-off-by: Olivier Tassinari --- packages/x-data-grid/src/locales/zhCN.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-data-grid/src/locales/zhCN.ts b/packages/x-data-grid/src/locales/zhCN.ts index 2e01567f1a3a..cdba5352b313 100644 --- a/packages/x-data-grid/src/locales/zhCN.ts +++ b/packages/x-data-grid/src/locales/zhCN.ts @@ -33,7 +33,7 @@ const zhCNGrid: Partial = { // Prompt toolbar field toolbarPromptControlPlaceholder: '输入提示词', toolbarPromptControlWithRecordingPlaceholder: '输入提示词或点击录音', - toolbarPromptControlRecordingPlaceholder: '正在录音...', + toolbarPromptControlRecordingPlaceholder: '正在录音…', toolbarPromptControlLabel: '提示词输入', toolbarPromptControlRecordButtonDefaultLabel: '录音', toolbarPromptControlRecordButtonActiveLabel: '停止录音',