Sha256: d9abf16eed703724980bad09af56c3e19c65d6973718167dd0f7f97b589b490b

Contents?: true

Size: 1.9 KB

Versions: 40

Compression:

Stored size: 1.9 KB

Contents

//! moment.js locale configuration
//! locale : Italian (Switzerland) [it-ch]
//! author : xfh : https://github.com/xfh

import moment from '../moment';

export default moment.defineLocale('it-ch', {
    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',
    },
    calendar: {
        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';
            }
        },
        sameElse: 'L',
    },
    relativeTime: {
        future: function (s) {
            return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
        },
        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',
    },
    dayOfMonthOrdinalParse: /\d{1,2}º/,
    ordinal: '%dº',
    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.
    },
});

Version data entries

40 entries across 21 versions & 2 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.15.6 vendor/moment/src/locale/it-ch.js
card-mod-date-0.15.0 vendor/moment/src/locale/it-ch.js
card-mod-date-0.15.0 vendor/moment/dist/locale/it-ch.js
momentjs-rails-2.29.4 vendor/assets/javascripts/moment/it-ch.js
card-mod-date-0.14.2 vendor/moment/src/locale/it-ch.js
card-mod-date-0.14.2 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.14.1 vendor/moment/src/locale/it-ch.js
card-mod-date-0.14.1 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.14.0 vendor/moment/src/locale/it-ch.js
card-mod-date-0.14.0 vendor/moment/dist/locale/it-ch.js
momentjs-rails-2.29.1 vendor/assets/javascripts/moment/it-ch.js
card-mod-date-0.13.4 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.13.4 vendor/moment/src/locale/it-ch.js
card-mod-date-0.13.3 vendor/moment/src/locale/it-ch.js
card-mod-date-0.13.3 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.13.2 vendor/moment/src/locale/it-ch.js
card-mod-date-0.13.2 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.13.1 vendor/moment/dist/locale/it-ch.js
card-mod-date-0.13.1 vendor/moment/src/locale/it-ch.js