Skip to content

Commit

Permalink
[l10n] Improve Hungarian (hu-HU) locale (#12930)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Apr 29, 2024
1 parent f9b1a63 commit c808d8c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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 @@ -107,7 +107,7 @@
"languageTag": "hu-HU",
"importName": "huHU",
"localeName": "Hungarian",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/huHU.ts"
},
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/huHU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const huHUPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Kezdő dátum',
end: 'Záró dátum',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Kezdő dátum',
startTime: 'Kezdő idő',
endDate: 'Záró dátum',
endTime: 'Záró idő',

// Action bar
cancelButtonLabel: 'Mégse',
Expand Down Expand Up @@ -78,24 +78,24 @@ const huHUPickers: Partial<PickersLocaleText<any>> = {
fieldYearPlaceholder: (params) => 'É'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'HHHH' : 'HH'),
fieldDayPlaceholder: () => 'NN',
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'NNNN' : 'NN'),
fieldHoursPlaceholder: () => 'óó',
fieldMinutesPlaceholder: () => 'pp',
fieldSecondsPlaceholder: () => 'mm',
fieldMeridiemPlaceholder: () => 'dd',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'Év',
month: 'Hónap',
day: 'Nap',
weekDay: 'Hétköznap',
hours: timeViews.hours,
minutes: timeViews.minutes,
seconds: timeViews.seconds,
meridiem: timeViews.meridiem,

// Common
// empty: 'Empty',
empty: 'Üres',
};

export const huHU = getPickersLocalization(huHUPickers);

0 comments on commit c808d8c

Please sign in to comment.