93 lines
3.6 KiB
JavaScript
93 lines
3.6 KiB
JavaScript
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
var views = {
|
|
hours: 'le ore',
|
|
minutes: 'i minuti',
|
|
seconds: 'i secondi',
|
|
meridiem: 'il meridiano'
|
|
};
|
|
var itITPickers = {
|
|
// Calendar navigation
|
|
previousMonth: 'Mese precedente',
|
|
nextMonth: 'Mese successivo',
|
|
// View navigation
|
|
openPreviousView: 'apri la vista precedente',
|
|
openNextView: 'apri la vista successiva',
|
|
calendarViewSwitchingButtonAriaLabel: function calendarViewSwitchingButtonAriaLabel(view) {
|
|
return view === 'year' ? "la vista dell'anno è aperta, passare alla vista del calendario" : "la vista dell'calendario è aperta, passare alla vista dell'anno";
|
|
},
|
|
// DateRange placeholders
|
|
start: 'Inizio',
|
|
end: 'Fine',
|
|
// Action bar
|
|
cancelButtonLabel: 'Cancellare',
|
|
clearButtonLabel: 'Sgomberare',
|
|
okButtonLabel: 'OK',
|
|
todayButtonLabel: 'Oggi',
|
|
// Toolbar titles
|
|
datePickerToolbarTitle: 'Seleziona data',
|
|
dateTimePickerToolbarTitle: 'Seleziona data e orario',
|
|
timePickerToolbarTitle: 'Seleziona orario',
|
|
dateRangePickerToolbarTitle: 'Seleziona intervallo di date',
|
|
// Clock labels
|
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
return "Seleziona ".concat(views[view], ". ").concat(time === null ? 'Nessun orario selezionato' : "L'ora selezionata \xE8 ".concat(adapter.format(time, 'fullTime')));
|
|
},
|
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
return "".concat(hours, " ore");
|
|
},
|
|
minutesClockNumberText: function minutesClockNumberText(minutes) {
|
|
return "".concat(minutes, " minuti");
|
|
},
|
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
return "".concat(seconds, " secondi");
|
|
},
|
|
// Digital clock labels
|
|
selectViewText: function selectViewText(view) {
|
|
return "Seleziona ".concat(views[view]);
|
|
},
|
|
// Calendar labels
|
|
calendarWeekNumberHeaderLabel: 'Numero settimana',
|
|
calendarWeekNumberHeaderText: '#',
|
|
calendarWeekNumberAriaLabelText: function calendarWeekNumberAriaLabelText(weekNumber) {
|
|
return "Settimana ".concat(weekNumber);
|
|
},
|
|
calendarWeekNumberText: function calendarWeekNumberText(weekNumber) {
|
|
return "".concat(weekNumber);
|
|
},
|
|
// Open picker labels
|
|
openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
|
|
return value !== null && utils.isValid(value) ? "Scegli la data, la data selezionata \xE8 ".concat(utils.format(value, 'fullDate')) : 'Scegli la data';
|
|
},
|
|
openTimePickerDialogue: function openTimePickerDialogue(value, utils) {
|
|
return value !== null && utils.isValid(value) ? "Scegli l'ora, l'ora selezionata \xE8 ".concat(utils.format(value, 'fullTime')) : "Scegli l'ora";
|
|
},
|
|
// fieldClearLabel: 'Clear value',
|
|
|
|
// Table labels
|
|
timeTableLabel: "scegli un'ora",
|
|
dateTableLabel: 'scegli una data',
|
|
// Field section placeholders
|
|
fieldYearPlaceholder: function fieldYearPlaceholder(params) {
|
|
return 'A'.repeat(params.digitAmount);
|
|
},
|
|
fieldMonthPlaceholder: function fieldMonthPlaceholder(params) {
|
|
return params.contentType === 'letter' ? 'MMMM' : 'MM';
|
|
},
|
|
fieldDayPlaceholder: function fieldDayPlaceholder() {
|
|
return 'GG';
|
|
},
|
|
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
|
|
fieldHoursPlaceholder: function fieldHoursPlaceholder() {
|
|
return 'hh';
|
|
},
|
|
fieldMinutesPlaceholder: function fieldMinutesPlaceholder() {
|
|
return 'mm';
|
|
},
|
|
fieldSecondsPlaceholder: function fieldSecondsPlaceholder() {
|
|
return 'ss';
|
|
},
|
|
fieldMeridiemPlaceholder: function fieldMeridiemPlaceholder() {
|
|
return 'aa';
|
|
}
|
|
};
|
|
export var itIT = getPickersLocalization(itITPickers); |