Skip to content

Commit

Permalink
[l10n] Improve Italian (it-IT) locale (#12549)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Mancini <an.manc25@gmail.com>
Co-authored-by: Antonio <antonio.mancini@clemps.it>
  • Loading branch information
antomanc and Antonio committed Mar 25, 2024
1 parent 6b72f37 commit 7f4d0ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 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 @@ -123,7 +123,7 @@
"languageTag": "it-IT",
"importName": "itIT",
"localeName": "Italian",
"missingKeysCount": 15,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/itIT.ts"
},
Expand Down
30 changes: 15 additions & 15 deletions packages/x-date-pickers/src/locales/itIT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const itITPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Inizio',
end: 'Fine',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Data di inizio',
startTime: 'Ora di inizio',
endDate: 'Data di fine',
endTime: 'Ora di fine',

// Action bar
cancelButtonLabel: 'Cancellare',
Expand Down Expand Up @@ -67,7 +67,7 @@ const itITPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `Scegli l'ora, l'ora selezionata è ${utils.format(value, 'fullTime')}`
: "Scegli l'ora",
// fieldClearLabel: 'Clear value',
fieldClearLabel: 'Cancella valore',

// Table labels
timeTableLabel: "scegli un'ora",
Expand All @@ -77,24 +77,24 @@ const itITPickers: Partial<PickersLocaleText<any>> = {
fieldYearPlaceholder: (params) => 'A'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'MMMM' : 'MM'),
fieldDayPlaceholder: () => 'GG',
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'GGGG' : 'GG'),
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',
// meridiem: 'Meridiem',
year: 'Anno',
month: 'Mese',
day: 'Giorno',
weekDay: 'Giorno della settimana',
hours: 'Ore',
minutes: 'Minuti',
seconds: 'Secondi',
meridiem: 'Meridiano',

// Common
// empty: 'Empty',
empty: 'Vuoto',
};

export const itIT = getPickersLocalization(itITPickers);

0 comments on commit 7f4d0ba

Please sign in to comment.