cscg24-guacamole

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

ca.js (3055B)


      1//! moment.js locale configuration
      2//! locale : Catalan [ca]
      3//! author : Juan G. Hurtado : https://github.com/juanghurtado
      4
      5import moment from '../moment';
      6
      7export default moment.defineLocale('ca', {
      8    months: {
      9        standalone:
     10            'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
     11                '_'
     12            ),
     13        format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
     14            '_'
     15        ),
     16        isFormat: /D[oD]?(\s)+MMMM/,
     17    },
     18    monthsShort:
     19        'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
     20            '_'
     21        ),
     22    monthsParseExact: true,
     23    weekdays:
     24        'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
     25            '_'
     26        ),
     27    weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
     28    weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
     29    weekdaysParseExact: true,
     30    longDateFormat: {
     31        LT: 'H:mm',
     32        LTS: 'H:mm:ss',
     33        L: 'DD/MM/YYYY',
     34        LL: 'D MMMM [de] YYYY',
     35        ll: 'D MMM YYYY',
     36        LLL: 'D MMMM [de] YYYY [a les] H:mm',
     37        lll: 'D MMM YYYY, H:mm',
     38        LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
     39        llll: 'ddd D MMM YYYY, H:mm',
     40    },
     41    calendar: {
     42        sameDay: function () {
     43            return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
     44        },
     45        nextDay: function () {
     46            return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
     47        },
     48        nextWeek: function () {
     49            return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
     50        },
     51        lastDay: function () {
     52            return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
     53        },
     54        lastWeek: function () {
     55            return (
     56                '[el] dddd [passat a ' +
     57                (this.hours() !== 1 ? 'les' : 'la') +
     58                '] LT'
     59            );
     60        },
     61        sameElse: 'L',
     62    },
     63    relativeTime: {
     64        future: "d'aquí %s",
     65        past: 'fa %s',
     66        s: 'uns segons',
     67        ss: '%d segons',
     68        m: 'un minut',
     69        mm: '%d minuts',
     70        h: 'una hora',
     71        hh: '%d hores',
     72        d: 'un dia',
     73        dd: '%d dies',
     74        M: 'un mes',
     75        MM: '%d mesos',
     76        y: 'un any',
     77        yy: '%d anys',
     78    },
     79    dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
     80    ordinal: function (number, period) {
     81        var output =
     82            number === 1
     83                ? 'r'
     84                : number === 2
     85                  ? 'n'
     86                  : number === 3
     87                    ? 'r'
     88                    : number === 4
     89                      ? 't'
     90                      : 'è';
     91        if (period === 'w' || period === 'W') {
     92            output = 'a';
     93        }
     94        return number + output;
     95    },
     96    week: {
     97        dow: 1, // Monday is the first day of the week.
     98        doy: 4, // The week that contains Jan 4th is the first week of the year.
     99    },
    100});