cscg24-guacamole

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

nl.js (3921B)


      1//! moment.js locale configuration
      2//! locale : Dutch [nl]
      3//! author : Joris Röling : https://github.com/jorisroling
      4//! author : Jacob Middag : https://github.com/middagj
      5
      6;(function (global, factory) {
      7   typeof exports === 'object' && typeof module !== 'undefined'
      8       && typeof require === 'function' ? factory(require('../moment')) :
      9   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
     10   factory(global.moment)
     11}(this, (function (moment) { 'use strict';
     12
     13    //! moment.js locale configuration
     14
     15    var monthsShortWithDots =
     16            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
     17        monthsShortWithoutDots =
     18            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
     19        monthsParse = [
     20            /^jan/i,
     21            /^feb/i,
     22            /^(maart|mrt\.?)$/i,
     23            /^apr/i,
     24            /^mei$/i,
     25            /^jun[i.]?$/i,
     26            /^jul[i.]?$/i,
     27            /^aug/i,
     28            /^sep/i,
     29            /^okt/i,
     30            /^nov/i,
     31            /^dec/i,
     32        ],
     33        monthsRegex =
     34            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
     35
     36    var nl = moment.defineLocale('nl', {
     37        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
     38            '_'
     39        ),
     40        monthsShort: function (m, format) {
     41            if (!m) {
     42                return monthsShortWithDots;
     43            } else if (/-MMM-/.test(format)) {
     44                return monthsShortWithoutDots[m.month()];
     45            } else {
     46                return monthsShortWithDots[m.month()];
     47            }
     48        },
     49
     50        monthsRegex: monthsRegex,
     51        monthsShortRegex: monthsRegex,
     52        monthsStrictRegex:
     53            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
     54        monthsShortStrictRegex:
     55            /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
     56
     57        monthsParse: monthsParse,
     58        longMonthsParse: monthsParse,
     59        shortMonthsParse: monthsParse,
     60
     61        weekdays:
     62            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
     63        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
     64        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
     65        weekdaysParseExact: true,
     66        longDateFormat: {
     67            LT: 'HH:mm',
     68            LTS: 'HH:mm:ss',
     69            L: 'DD-MM-YYYY',
     70            LL: 'D MMMM YYYY',
     71            LLL: 'D MMMM YYYY HH:mm',
     72            LLLL: 'dddd D MMMM YYYY HH:mm',
     73        },
     74        calendar: {
     75            sameDay: '[vandaag om] LT',
     76            nextDay: '[morgen om] LT',
     77            nextWeek: 'dddd [om] LT',
     78            lastDay: '[gisteren om] LT',
     79            lastWeek: '[afgelopen] dddd [om] LT',
     80            sameElse: 'L',
     81        },
     82        relativeTime: {
     83            future: 'over %s',
     84            past: '%s geleden',
     85            s: 'een paar seconden',
     86            ss: '%d seconden',
     87            m: 'één minuut',
     88            mm: '%d minuten',
     89            h: 'één uur',
     90            hh: '%d uur',
     91            d: 'één dag',
     92            dd: '%d dagen',
     93            w: 'één week',
     94            ww: '%d weken',
     95            M: 'één maand',
     96            MM: '%d maanden',
     97            y: 'één jaar',
     98            yy: '%d jaar',
     99        },
    100        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
    101        ordinal: function (number) {
    102            return (
    103                number +
    104                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
    105            );
    106        },
    107        week: {
    108            dow: 1, // Monday is the first day of the week.
    109            doy: 4, // The week that contains Jan 4th is the first week of the year.
    110        },
    111    });
    112
    113    return nl;
    114
    115})));