Skip to content

Commit d61ffb3

Browse files
github-actions[bot]nusrarminmeh
authored
[l10n] Improve Chinese (zh-CN), (zh-HK) and (zh-TW) locales (@nusr) (#16917)
Co-authored-by: Steve Xu <[email protected]> Co-authored-by: Armin Mehinovic <[email protected]>
1 parent 7aceca5 commit d61ffb3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/data/data-grid/localization/data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
"languageTag": "zh-HK",
3636
"importName": "zhHK",
3737
"localeName": "Chinese (Hong Kong)",
38-
"missingKeysCount": 2,
38+
"missingKeysCount": 0,
3939
"totalKeysCount": 124,
4040
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/zhHK.ts"
4141
},
4242
{
4343
"languageTag": "zh-CN",
4444
"importName": "zhCN",
4545
"localeName": "Chinese (Simplified)",
46-
"missingKeysCount": 1,
46+
"missingKeysCount": 0,
4747
"totalKeysCount": 124,
4848
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/zhCN.ts"
4949
},
5050
{
5151
"languageTag": "zh-TW",
5252
"importName": "zhTW",
5353
"localeName": "Chinese (Taiwan)",
54-
"missingKeysCount": 2,
54+
"missingKeysCount": 0,
5555
"totalKeysCount": 124,
5656
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/zhTW.ts"
5757
},

packages/x-data-grid/src/locales/zhCN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const zhCNGrid: Partial<GridLocaleText> = {
109109

110110
// Column menu text
111111
columnMenuLabel: '菜单',
112-
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
112+
columnMenuAriaLabel: (columnName: string) => `${columnName} 列菜单`,
113113
columnMenuShowColumns: '显示',
114114
columnMenuManageColumns: '管理列',
115115
columnMenuFilter: '筛选器',

packages/x-data-grid/src/locales/zhHK.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const zhHKGrid: Partial<GridLocaleText> = {
4343
columnsManagementNoColumns: '沒有列',
4444
columnsManagementShowHideAllText: '顯示/隱藏所有',
4545
columnsManagementReset: '重置',
46-
// columnsManagementDeleteIconLabel: 'Clear',
46+
columnsManagementDeleteIconLabel: '清除',
4747

4848
// Filter panel text
4949
filterPanelAddFilter: '新增過濾器',
@@ -110,7 +110,7 @@ const zhHKGrid: Partial<GridLocaleText> = {
110110

111111
// Column menu text
112112
columnMenuLabel: '選單',
113-
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
113+
columnMenuAriaLabel: (columnName: string) => `${columnName} 欄目選單`,
114114
columnMenuShowColumns: '顯示欄目',
115115
columnMenuManageColumns: '管理欄目',
116116
columnMenuFilter: '篩選',

packages/x-data-grid/src/locales/zhTW.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const zhTWGrid: Partial<GridLocaleText> = {
4242
columnsManagementNoColumns: '沒有欄位',
4343
columnsManagementShowHideAllText: '顯示/隱藏所有',
4444
columnsManagementReset: '重置',
45-
// columnsManagementDeleteIconLabel: 'Clear',
45+
columnsManagementDeleteIconLabel: '清除',
4646

4747
// Filter panel text
4848
filterPanelAddFilter: '增加篩選器',
@@ -109,7 +109,7 @@ const zhTWGrid: Partial<GridLocaleText> = {
109109

110110
// Column menu text
111111
columnMenuLabel: '選單',
112-
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
112+
columnMenuAriaLabel: (columnName: string) => `${columnName} 欄位選單`,
113113
columnMenuShowColumns: '顯示欄位',
114114
columnMenuManageColumns: '管理欄位',
115115
columnMenuFilter: '篩選器',

0 commit comments

Comments
 (0)