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