Skip to content

Commit

Permalink
[l10n] Improve Korean (ko-KR) locale (mui#13651)
Browse files Browse the repository at this point in the history
  • Loading branch information
100pearlcent authored and thomasmoon committed Sep 6, 2024
1 parent 3df5650 commit 3706c27
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 @@ -147,7 +147,7 @@
"languageTag": "ko-KR",
"importName": "koKR",
"localeName": "Korean",
"missingKeysCount": 14,
"missingKeysCount": 1,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/koKR.ts"
},
Expand Down
26 changes: 13 additions & 13 deletions packages/x-date-pickers/src/locales/koKR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const koKRPickers: 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 @@ -77,24 +77,24 @@ const koKRPickers: Partial<PickersLocaleText<any>> = {
fieldYearPlaceholder: (params) => 'Y'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'MMMM' : 'MM'),
fieldDayPlaceholder: () => 'DD',
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'EEEE' : 'EE'),
fieldHoursPlaceholder: () => 'hh',
fieldMinutesPlaceholder: () => 'mm',
fieldSecondsPlaceholder: () => 'ss',
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
year: '',
month: '',
day: '',
weekDay: '평일',
hours: '시간',
minutes: '',
seconds: '',
// meridiem: 'Meridiem',

// Common
// empty: 'Empty',
empty: '공란',
};

export const koKR = getPickersLocalization(koKRPickers);

0 comments on commit 3706c27

Please sign in to comment.