Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales #9999

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"languageTag": "zh-CN",
"importName": "zhCN",
"localeName": "Chinese (Simplified)",
"missingKeysCount": 25,
"missingKeysCount": 0,
"totalKeysCount": 119,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/grid/x-data-grid/src/locales/zhCN.ts"
},
{
"languageTag": "zh-TW",
"importName": "zhTW",
"localeName": "Chinese (Taiwan)",
"missingKeysCount": 33,
"missingKeysCount": 0,
"totalKeysCount": 119,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/grid/x-data-grid/src/locales/zhTW.ts"
},
Expand Down
50 changes: 25 additions & 25 deletions packages/grid/x-data-grid/src/locales/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,33 @@ const zhCNGrid: Partial<GridLocaleText> = {
filterOperatorIsEmpty: '为空',
filterOperatorIsNotEmpty: '不为空',
filterOperatorIsAnyOf: '属于',
// 'filterOperator=': '=',
// 'filterOperator!=': '!=',
// 'filterOperator>': '>',
// 'filterOperator>=': '>=',
// 'filterOperator<': '<',
// 'filterOperator<=': '<=',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',

// Header filter operators text
// headerFilterOperatorContains: 'Contains',
// headerFilterOperatorEquals: 'Equals',
// headerFilterOperatorStartsWith: 'Starts with',
// headerFilterOperatorEndsWith: 'Ends with',
// headerFilterOperatorIs: 'Is',
// headerFilterOperatorNot: 'Is not',
// headerFilterOperatorAfter: 'Is after',
// headerFilterOperatorOnOrAfter: 'Is on or after',
// headerFilterOperatorBefore: 'Is before',
// headerFilterOperatorOnOrBefore: 'Is on or before',
// headerFilterOperatorIsEmpty: 'Is empty',
// headerFilterOperatorIsNotEmpty: 'Is not empty',
// headerFilterOperatorIsAnyOf: 'Is any of',
// 'headerFilterOperator=': 'Equals',
// 'headerFilterOperator!=': 'Not equals',
// 'headerFilterOperator>': 'Greater than',
// 'headerFilterOperator>=': 'Greater than or equal to',
// 'headerFilterOperator<': 'Less than',
// 'headerFilterOperator<=': 'Less than or equal to',
headerFilterOperatorContains: '包含',
headerFilterOperatorEquals: '等于',
headerFilterOperatorStartsWith: '开始于',
headerFilterOperatorEndsWith: '结束于',
headerFilterOperatorIs: '',
headerFilterOperatorNot: '不是',
headerFilterOperatorAfter: '在后面',
headerFilterOperatorOnOrAfter: '在当前或后面',
headerFilterOperatorBefore: '在前面',
headerFilterOperatorOnOrBefore: '在当前或前面',
headerFilterOperatorIsEmpty: '为空',
headerFilterOperatorIsNotEmpty: '不为空',
headerFilterOperatorIsAnyOf: '属于',
'headerFilterOperator=': '等于',
'headerFilterOperator!=': '不等于',
'headerFilterOperator>': '大于',
'headerFilterOperator>=': '大于或等于',
'headerFilterOperator<': '小雨',
'headerFilterOperator<=': '小于或等于',

// Filter values text
filterValueAny: '任何',
Expand Down
66 changes: 33 additions & 33 deletions packages/grid/x-data-grid/src/locales/zhTW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const zhTWGrid: Partial<GridLocaleText> = {

// Filter panel text
filterPanelAddFilter: '增加篩選器',
// filterPanelRemoveAll: 'Remove all',
filterPanelRemoveAll: '清除所有',
filterPanelDeleteIconLabel: '刪除',
filterPanelLogicOperator: '邏輯運算子',
filterPanelOperator: '運算子',
Expand All @@ -70,33 +70,33 @@ const zhTWGrid: Partial<GridLocaleText> = {
filterOperatorIsEmpty: '為空',
filterOperatorIsNotEmpty: '不為空',
filterOperatorIsAnyOf: '是其中之一',
// 'filterOperator=': '=',
// 'filterOperator!=': '!=',
// 'filterOperator>': '>',
// 'filterOperator>=': '>=',
// 'filterOperator<': '<',
// 'filterOperator<=': '<=',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',

// Header filter operators text
// headerFilterOperatorContains: 'Contains',
// headerFilterOperatorEquals: 'Equals',
// headerFilterOperatorStartsWith: 'Starts with',
// headerFilterOperatorEndsWith: 'Ends with',
// headerFilterOperatorIs: 'Is',
// headerFilterOperatorNot: 'Is not',
// headerFilterOperatorAfter: 'Is after',
// headerFilterOperatorOnOrAfter: 'Is on or after',
// headerFilterOperatorBefore: 'Is before',
// headerFilterOperatorOnOrBefore: 'Is on or before',
// headerFilterOperatorIsEmpty: 'Is empty',
// headerFilterOperatorIsNotEmpty: 'Is not empty',
// headerFilterOperatorIsAnyOf: 'Is any of',
// 'headerFilterOperator=': 'Equals',
// 'headerFilterOperator!=': 'Not equals',
// 'headerFilterOperator>': 'Greater than',
// 'headerFilterOperator>=': 'Greater than or equal to',
// 'headerFilterOperator<': 'Less than',
// 'headerFilterOperator<=': 'Less than or equal to',
headerFilterOperatorContains: '包含',
headerFilterOperatorEquals: '等於',
headerFilterOperatorStartsWith: '以...開頭',
headerFilterOperatorEndsWith: '以...結束',
headerFilterOperatorIs: '',
headerFilterOperatorNot: '不為',
headerFilterOperatorAfter: '...之後',
headerFilterOperatorOnOrAfter: '...(含)之後',
headerFilterOperatorBefore: '...之前',
headerFilterOperatorOnOrBefore: '...(含)之前',
headerFilterOperatorIsEmpty: '為空',
headerFilterOperatorIsNotEmpty: '不為空',
headerFilterOperatorIsAnyOf: '是其中之一',
'headerFilterOperator=': '等於',
'headerFilterOperator!=': '不等於',
'headerFilterOperator>': '大於',
'headerFilterOperator>=': '大於或等於',
'headerFilterOperator<': '小於',
'headerFilterOperator<=': '小於或等於',

// Filter values text
filterValueAny: '任何值',
Expand All @@ -106,7 +106,7 @@ const zhTWGrid: Partial<GridLocaleText> = {
// Column menu text
columnMenuLabel: '選單',
columnMenuShowColumns: '顯示欄位',
// columnMenuManageColumns: 'Manage columns',
columnMenuManageColumns: '管理欄位',
columnMenuFilter: '篩選器',
columnMenuHideColumn: '隱藏',
columnMenuUnsort: '預設排序',
Expand Down Expand Up @@ -166,12 +166,12 @@ const zhTWGrid: Partial<GridLocaleText> = {
rowReorderingHeaderName: '排序',

// Aggregation
// aggregationMenuItemHeader: 'Aggregation',
// aggregationFunctionLabelSum: 'sum',
// aggregationFunctionLabelAvg: 'avg',
// aggregationFunctionLabelMin: 'min',
// aggregationFunctionLabelMax: 'max',
// aggregationFunctionLabelSize: 'size',
aggregationMenuItemHeader: '集合',
aggregationFunctionLabelSum: '總數',
aggregationFunctionLabelAvg: '平均數',
aggregationFunctionLabelMin: '最小',
aggregationFunctionLabelMax: '最大',
aggregationFunctionLabelSize: '尺寸',
};

export const zhTW: Localization = getGridLocalization(zhTWGrid, zhTWCore);
Loading