2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Italian [it]
|
|
|
|
//! author : Lorenzo : https://github.com/aliem
|
|
|
|
//! author: Mattia Larentis: https://github.com/nostalgiaz
|
|
|
|
//! author: Marco : https://github.com/Manfre98
|
2013-06-07 04:03:09 -04:00
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
//! moment.js locale configuration
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
var it = moment.defineLocale('it', {
|
2020-11-10 20:34:26 -05:00
|
|
|
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
|
|
|
|
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
|
|
|
|
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'HH:mm',
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
L: 'DD/MM/YYYY',
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
LLL: 'D MMMM YYYY HH:mm',
|
|
|
|
LLLL: 'dddd D MMMM YYYY HH:mm',
|
2014-08-20 14:41:50 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
|
|
|
sameDay: function () {
|
|
|
|
return (
|
|
|
|
'[Oggi a' +
|
|
|
|
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
|
|
']LT'
|
|
|
|
);
|
|
|
|
},
|
|
|
|
nextDay: function () {
|
|
|
|
return (
|
|
|
|
'[Domani a' +
|
|
|
|
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
|
|
']LT'
|
|
|
|
);
|
|
|
|
},
|
|
|
|
nextWeek: function () {
|
|
|
|
return (
|
|
|
|
'dddd [a' +
|
|
|
|
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
|
|
']LT'
|
|
|
|
);
|
|
|
|
},
|
|
|
|
lastDay: function () {
|
|
|
|
return (
|
|
|
|
'[Ieri a' +
|
|
|
|
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
|
|
|
|
']LT'
|
|
|
|
);
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
lastWeek: function () {
|
|
|
|
switch (this.day()) {
|
|
|
|
case 0:
|
2020-11-10 20:34:26 -05:00
|
|
|
return (
|
|
|
|
'[La scorsa] dddd [a' +
|
|
|
|
(this.hours() > 1
|
|
|
|
? 'lle '
|
|
|
|
: this.hours() === 0
|
2024-03-10 22:04:51 -04:00
|
|
|
? ' '
|
|
|
|
: "ll'") +
|
2020-11-10 20:34:26 -05:00
|
|
|
']LT'
|
|
|
|
);
|
2018-04-26 03:15:53 -04:00
|
|
|
default:
|
2020-11-10 20:34:26 -05:00
|
|
|
return (
|
|
|
|
'[Lo scorso] dddd [a' +
|
|
|
|
(this.hours() > 1
|
|
|
|
? 'lle '
|
|
|
|
: this.hours() === 0
|
2024-03-10 22:04:51 -04:00
|
|
|
? ' '
|
|
|
|
: "ll'") +
|
2020-11-10 20:34:26 -05:00
|
|
|
']LT'
|
|
|
|
);
|
2018-04-26 03:15:53 -04:00
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
sameElse: 'L',
|
2014-08-20 14:41:50 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
relativeTime: {
|
|
|
|
future: 'tra %s',
|
|
|
|
past: '%s fa',
|
|
|
|
s: 'alcuni secondi',
|
|
|
|
ss: '%d secondi',
|
|
|
|
m: 'un minuto',
|
|
|
|
mm: '%d minuti',
|
|
|
|
h: "un'ora",
|
|
|
|
hh: '%d ore',
|
|
|
|
d: 'un giorno',
|
|
|
|
dd: '%d giorni',
|
|
|
|
w: 'una settimana',
|
|
|
|
ww: '%d settimane',
|
|
|
|
M: 'un mese',
|
|
|
|
MM: '%d mesi',
|
|
|
|
y: 'un anno',
|
|
|
|
yy: '%d anni',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
2018-04-26 03:15:53 -04:00
|
|
|
ordinal: '%dº',
|
2020-11-10 20:34:26 -05:00
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
return it;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|