cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

it-ch.js (1941B)


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