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