cscg24-guacamole

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

oc-lnc.js (2496B)


      1//! moment.js locale configuration
      2//! locale : Occitan, lengadocian dialecte [oc-lnc]
      3//! author : Quentin PAGÈS : https://github.com/Quenty31
      4
      5import moment from '../moment';
      6
      7export default moment.defineLocale('oc-lnc', {
      8    months: {
      9        standalone:
     10            'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
     11                '_'
     12            ),
     13        format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
     14            '_'
     15        ),
     16        isFormat: /D[oD]?(\s)+MMMM/,
     17    },
     18    monthsShort:
     19        'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
     20            '_'
     21        ),
     22    monthsParseExact: true,
     23    weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
     24        '_'
     25    ),
     26    weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
     27    weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
     28    weekdaysParseExact: true,
     29    longDateFormat: {
     30        LT: 'H:mm',
     31        LTS: 'H:mm:ss',
     32        L: 'DD/MM/YYYY',
     33        LL: 'D MMMM [de] YYYY',
     34        ll: 'D MMM YYYY',
     35        LLL: 'D MMMM [de] YYYY [a] H:mm',
     36        lll: 'D MMM YYYY, H:mm',
     37        LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
     38        llll: 'ddd D MMM YYYY, H:mm',
     39    },
     40    calendar: {
     41        sameDay: '[uèi a] LT',
     42        nextDay: '[deman a] LT',
     43        nextWeek: 'dddd [a] LT',
     44        lastDay: '[ièr a] LT',
     45        lastWeek: 'dddd [passat a] LT',
     46        sameElse: 'L',
     47    },
     48    relativeTime: {
     49        future: "d'aquí %s",
     50        past: 'fa %s',
     51        s: 'unas segondas',
     52        ss: '%d segondas',
     53        m: 'una minuta',
     54        mm: '%d minutas',
     55        h: 'una ora',
     56        hh: '%d oras',
     57        d: 'un jorn',
     58        dd: '%d jorns',
     59        M: 'un mes',
     60        MM: '%d meses',
     61        y: 'un an',
     62        yy: '%d ans',
     63    },
     64    dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
     65    ordinal: function (number, period) {
     66        var output =
     67            number === 1
     68                ? 'r'
     69                : number === 2
     70                  ? 'n'
     71                  : number === 3
     72                    ? 'r'
     73                    : number === 4
     74                      ? 't'
     75                      : 'è';
     76        if (period === 'w' || period === 'W') {
     77            output = 'a';
     78        }
     79        return number + output;
     80    },
     81    week: {
     82        dow: 1, // Monday is the first day of the week.
     83        doy: 4,
     84    },
     85});