[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> nl.js (source)

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


Generated: Thu Aug 24 01:01:27 2023 Cross-referenced by PHPXref 0.7.1