2016-04-01 05:33:25 +08:00
|
|
|
//! moment.js locale configuration
|
|
|
|
//! locale : italian (it)
|
|
|
|
//! author : Lorenzo : https://github.com/aliem
|
|
|
|
//! author: Mattia Larentis: https://github.com/nostalgiaz
|
2013-06-07 16:03:09 +08:00
|
|
|
|
2016-04-01 05:33:25 +08:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
|
|
|
factory(global.moment)
|
|
|
|
}(this, function (moment) { 'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
var it = moment.defineLocale('it', {
|
|
|
|
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('_'),
|
2014-08-21 02:41:50 +08:00
|
|
|
longDateFormat : {
|
2016-04-01 05:33:25 +08:00
|
|
|
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-21 02:41:50 +08:00
|
|
|
},
|
|
|
|
calendar : {
|
|
|
|
sameDay: '[Oggi alle] LT',
|
|
|
|
nextDay: '[Domani alle] LT',
|
|
|
|
nextWeek: 'dddd [alle] LT',
|
|
|
|
lastDay: '[Ieri alle] LT',
|
2016-04-01 05:33:25 +08:00
|
|
|
lastWeek: function () {
|
|
|
|
switch (this.day()) {
|
|
|
|
case 0:
|
|
|
|
return '[la scorsa] dddd [alle] LT';
|
|
|
|
default:
|
|
|
|
return '[lo scorso] dddd [alle] LT';
|
|
|
|
}
|
|
|
|
},
|
2014-08-21 02:41:50 +08:00
|
|
|
sameElse: 'L'
|
|
|
|
},
|
|
|
|
relativeTime : {
|
|
|
|
future : function (s) {
|
2016-04-01 05:33:25 +08:00
|
|
|
return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2016-04-01 05:33:25 +08:00
|
|
|
past : '%s fa',
|
|
|
|
s : 'alcuni secondi',
|
|
|
|
m : 'un minuto',
|
|
|
|
mm : '%d minuti',
|
|
|
|
h : 'un\'ora',
|
|
|
|
hh : '%d ore',
|
|
|
|
d : 'un giorno',
|
|
|
|
dd : '%d giorni',
|
|
|
|
M : 'un mese',
|
|
|
|
MM : '%d mesi',
|
|
|
|
y : 'un anno',
|
|
|
|
yy : '%d anni'
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2016-04-01 05:33:25 +08:00
|
|
|
ordinalParse : /\d{1,2}º/,
|
2014-08-21 02:41:50 +08:00
|
|
|
ordinal: '%dº',
|
|
|
|
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.
|
|
|
|
}
|
|
|
|
});
|
2016-04-01 05:33:25 +08:00
|
|
|
|
|
|
|
return it;
|
|
|
|
|
|
|
|
}));
|