2019-04-26 09:00:57 -04:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Italian (Switzerland) [it-ch]
|
|
|
|
//! author : xfh : https://github.com/xfh
|
2019-04-26 09:00:57 -04: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';
|
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
//! moment.js locale configuration
|
2019-04-26 09:00:57 -04:00
|
|
|
|
|
|
|
var itCh = moment.defineLocale('it-ch', {
|
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',
|
2019-04-26 09:00:57 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
2019-04-26 09:00:57 -04:00
|
|
|
sameDay: '[Oggi alle] LT',
|
|
|
|
nextDay: '[Domani alle] LT',
|
|
|
|
nextWeek: 'dddd [alle] LT',
|
|
|
|
lastDay: '[Ieri alle] LT',
|
|
|
|
lastWeek: function () {
|
|
|
|
switch (this.day()) {
|
|
|
|
case 0:
|
|
|
|
return '[la scorsa] dddd [alle] LT';
|
|
|
|
default:
|
|
|
|
return '[lo scorso] dddd [alle] LT';
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
sameElse: 'L',
|
2019-04-26 09:00:57 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
relativeTime: {
|
|
|
|
future: function (s) {
|
|
|
|
return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
|
2019-04-26 09:00:57 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
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',
|
|
|
|
M: 'un mese',
|
|
|
|
MM: '%d mesi',
|
|
|
|
y: 'un anno',
|
|
|
|
yy: '%d anni',
|
2019-04-26 09:00:57 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
2019-04-26 09:00:57 -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.
|
|
|
|
},
|
2019-04-26 09:00:57 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
return itCh;
|
|
|
|
|
|
|
|
})));
|