UNPKG

3.99 kBJavaScriptView Raw
1//! moment.js locale configuration
2//! locale : Italian [it]
3//! author : Lorenzo : https://github.com/aliem
4//! author: Mattia Larentis: https://github.com/nostalgiaz
5//! author: Marco : https://github.com/Manfre98
6
7;(function (global, factory) {
8 typeof exports === 'object' && typeof module !== 'undefined'
9 && typeof require === 'function' ? factory(require('../moment')) :
10 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11 factory(global.moment)
12}(this, (function (moment) { 'use strict';
13
14 //! moment.js locale configuration
15
16 var it = moment.defineLocale('it', {
17 months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
18 '_'
19 ),
20 monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
21 weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
22 '_'
23 ),
24 weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
25 weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
26 longDateFormat: {
27 LT: 'HH:mm',
28 LTS: 'HH:mm:ss',
29 L: 'DD/MM/YYYY',
30 LL: 'D MMMM YYYY',
31 LLL: 'D MMMM YYYY HH:mm',
32 LLLL: 'dddd D MMMM YYYY HH:mm',
33 },
34 calendar: {
35 sameDay: function () {
36 return (
37 '[Oggi a' +
38 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
39 ']LT'
40 );
41 },
42 nextDay: function () {
43 return (
44 '[Domani a' +
45 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
46 ']LT'
47 );
48 },
49 nextWeek: function () {
50 return (
51 'dddd [a' +
52 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
53 ']LT'
54 );
55 },
56 lastDay: function () {
57 return (
58 '[Ieri a' +
59 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
60 ']LT'
61 );
62 },
63 lastWeek: function () {
64 switch (this.day()) {
65 case 0:
66 return (
67 '[La scorsa] dddd [a' +
68 (this.hours() > 1
69 ? 'lle '
70 : this.hours() === 0
71 ? ' '
72 : "ll'") +
73 ']LT'
74 );
75 default:
76 return (
77 '[Lo scorso] dddd [a' +
78 (this.hours() > 1
79 ? 'lle '
80 : this.hours() === 0
81 ? ' '
82 : "ll'") +
83 ']LT'
84 );
85 }
86 },
87 sameElse: 'L',
88 },
89 relativeTime: {
90 future: 'tra %s',
91 past: '%s fa',
92 s: 'alcuni secondi',
93 ss: '%d secondi',
94 m: 'un minuto',
95 mm: '%d minuti',
96 h: "un'ora",
97 hh: '%d ore',
98 d: 'un giorno',
99 dd: '%d giorni',
100 w: 'una settimana',
101 ww: '%d settimane',
102 M: 'un mese',
103 MM: '%d mesi',
104 y: 'un anno',
105 yy: '%d anni',
106 },
107 dayOfMonthOrdinalParse: /\d{1,2}º/,
108 ordinal: '%dº',
109 week: {
110 dow: 1, // Monday is the first day of the week.
111 doy: 4, // The week that contains Jan 4th is the first week of the year.
112 },
113 });
114
115 return it;
116
117})));