PageSourceSearch

https://mefop.it/js/moment/locale/it.js

js mefop.it collected 2026-09-24 23:38:06 UTC 3,923 bytes, 115 lines download raw bytes

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            M: 'un mese',
101            MM: '%d mesi',
102            y: 'un anno',
103            yy: '%d anni',
104        },
105        dayOfMonthOrdinalParse: /\d{1,2}º/,
106        ordinal: '%dº',
107        week: {
108            dow: 1, // Monday is the first day of the week.
109            doy: 4, // The week that contains Jan 4th is the first week of the year.
110        },
111    });
112
113    return it;
114
115})));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.