Skip to content

Commit

Permalink
[l10n] Improve Italian (it-IT) locale (#7761)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonecervini authored Jan 30, 2023
1 parent 5b1145f commit 18b8f60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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 @@ -67,7 +67,7 @@
"languageTag": "it-IT",
"importName": "itIT",
"localeName": "Italian",
"missingKeysCount": 11,
"missingKeysCount": 0,
"totalKeysCount": 34,
"githubLink": "https://github.com/mui/mui-x/blob/next/packages/x-date-pickers/src/locales/itIT.ts/"
},
Expand Down
24 changes: 12 additions & 12 deletions packages/x-date-pickers/src/locales/itIT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ const itITPickers: Partial<PickersLocaleText<any>> = {
secondsClockNumberText: (seconds) => `${seconds} secondi`,

// Calendar labels
// calendarWeekNumberHeaderLabel: 'Week number',
// calendarWeekNumberHeaderText: '#',
// calendarWeekNumberAriaLabelText: weekNumber => `Week ${weekNumber}`,
// calendarWeekNumberText: weekNumber => `${weekNumber}`,
calendarWeekNumberHeaderLabel: 'Numero settimana',
calendarWeekNumberHeaderText: '#',
calendarWeekNumberAriaLabelText: (weekNumber) => `Settimana ${weekNumber}`,
calendarWeekNumberText: (weekNumber) => `${weekNumber}`,

// Open picker labels
openDatePickerDialogue: (value, utils) =>
Expand All @@ -64,17 +64,17 @@ const itITPickers: Partial<PickersLocaleText<any>> = {
: "Scegli l'ora",

// Table labels
timeTableLabel: 'scegli un ora',
timeTableLabel: "scegli un'ora",
dateTableLabel: 'scegli una data',

// Field section placeholders
// fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount),
// fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
// fieldDayPlaceholder: () => 'DD',
// fieldHoursPlaceholder: () => 'hh',
// fieldMinutesPlaceholder: () => 'mm',
// fieldSecondsPlaceholder: () => 'ss',
// fieldMeridiemPlaceholder: () => 'aa',
fieldYearPlaceholder: (params) => 'A'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'MMMM' : 'MM'),
fieldDayPlaceholder: () => 'GG',
fieldHoursPlaceholder: () => 'hh',
fieldMinutesPlaceholder: () => 'mm',
fieldSecondsPlaceholder: () => 'ss',
fieldMeridiemPlaceholder: () => 'aa',
};

export const itIT = getPickersLocalization(itITPickers);

0 comments on commit 18b8f60

Please sign in to comment.