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