| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
;(function (global, factory) { |
| 6 |
typeof exports === 'object' && typeof module !== 'undefined' |
| 7 |
&& typeof require === 'function' ? factory(require('../moment')) : |
| 8 |
typeof define === 'function' && define.amd ? define(['../moment'], factory) : |
| 9 |
factory(global.moment) |
| 10 |
}(this, (function (moment) { 'use strict'; |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
var itCh = moment.defineLocale('it-ch', { |
| 15 |
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( |
| 16 |
'_' |
| 17 |
), |
| 18 |
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), |
| 19 |
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( |
| 20 |
'_' |
| 21 |
), |
| 22 |
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), |
| 23 |
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), |
| 24 |
longDateFormat: { |
| 25 |
LT: 'HH:mm', |
| 26 |
LTS: 'HH:mm:ss', |
| 27 |
L: 'DD.MM.YYYY', |
| 28 |
LL: 'D MMMM YYYY', |
| 29 |
LLL: 'D MMMM YYYY HH:mm', |
| 30 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 31 |
}, |
| 32 |
calendar: { |
| 33 |
sameDay: '[Oggi alle] LT', |
| 34 |
nextDay: '[Domani alle] LT', |
| 35 |
nextWeek: 'dddd [alle] LT', |
| 36 |
lastDay: '[Ieri alle] LT', |
| 37 |
lastWeek: function () { |
| 38 |
switch (this.day()) { |
| 39 |
case 0: |
| 40 |
return '[la scorsa] dddd [alle] LT'; |
| 41 |
default: |
| 42 |
return '[lo scorso] dddd [alle] LT'; |
| 43 |
} |
| 44 |
}, |
| 45 |
sameElse: 'L', |
| 46 |
}, |
| 47 |
relativeTime: { |
| 48 |
future: function (s) { |
| 49 |
return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; |
| 50 |
}, |
| 51 |
past: '%s fa', |
| 52 |
s: 'alcuni secondi', |
| 53 |
ss: '%d secondi', |
| 54 |
m: 'un minuto', |
| 55 |
mm: '%d minuti', |
| 56 |
h: "un'ora", |
| 57 |
hh: '%d ore', |
| 58 |
d: 'un giorno', |
| 59 |
dd: '%d giorni', |
| 60 |
M: 'un mese', |
| 61 |
MM: '%d mesi', |
| 62 |
y: 'un anno', |
| 63 |
yy: '%d anni', |
| 64 |
}, |
| 65 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 66 |
ordinal: '%dº', |
| 67 |
week: { |
| 68 |
dow: 1, |
| 69 |
doy: 4, |
| 70 |
}, |
| 71 |
}); |
| 72 |
|
| 73 |
return itCh; |
| 74 |
|
| 75 |
}))); |