Skip to content

Commit

Permalink
[l10n] Improve Chinese (Hong Kong) (zh-HK) locale (#12547)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Chiu <341975@haeco.com>
Co-authored-by: Lukas <llukas.tyla@gmail.com>
  • Loading branch information
3 people committed Mar 26, 2024
1 parent 00ad17b commit 6034acf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"languageTag": "zh-HK",
"importName": "zhHK",
"localeName": "Chinese (Hong Kong)",
"missingKeysCount": 14,
"missingKeysCount": 1,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/zhHK.ts"
},
Expand Down
26 changes: 13 additions & 13 deletions packages/x-date-pickers/src/locales/zhHK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const zhHKPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: '開始',
end: '結束',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: '開始日期',
startTime: '開始時間',
endDate: '結束日期',
endTime: '結束時間',

// Action bar
cancelButtonLabel: '取消',
Expand Down Expand Up @@ -82,17 +82,17 @@ const zhHKPickers: Partial<PickersLocaleText<any>> = {
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: '',
month: '',
day: '',
weekDay: '星期',
hours: '小時',
minutes: '分鐘',
seconds: '',
meridiem: '子午線',

// Common
// empty: 'Empty',
empty: '空值',
};

export const zhHK = getPickersLocalization(zhHKPickers);

0 comments on commit 6034acf

Please sign in to comment.