Skip to content

Commit

Permalink
[l10n] Improve Chinese (zh-CN) locale (#15570)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Tassinari <[email protected]>
Co-authored-by: Olivier Tassinari <[email protected]>
  • Loading branch information
headironc and oliviertassinari authored Nov 25, 2024
1 parent ea367d2 commit 564be33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/data/data-grid/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": 10,
"missingKeysCount": 0,
"totalKeysCount": 132,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhCN.ts"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/x-data-grid/src/locales/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ const zhCNGrid: Partial<GridLocaleText> = {
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: '导出',
Expand All @@ -53,7 +53,7 @@ const zhCNGrid: Partial<GridLocaleText> = {
columnsManagementNoColumns: '没有列',
columnsManagementShowHideAllText: '显示/隐藏所有',
columnsManagementReset: '重置',
// columnsManagementDeleteIconLabel: 'Clear',
columnsManagementDeleteIconLabel: '清除',

// Filter panel text
filterPanelAddFilter: '添加筛选器',
Expand Down

0 comments on commit 564be33

Please sign in to comment.