cscg24-guacamole

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

nl-be.js (3172B)


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