UNPKG

3.88 kBJavaScriptView Raw
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
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 nlBe = moment.defineLocale('nl-be', {
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 M: 'één maand',
94 MM: '%d maanden',
95 y: 'één jaar',
96 yy: '%d jaar',
97 },
98 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
99 ordinal: function (number) {
100 return (
101 number +
102 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
103 );
104 },
105 week: {
106 dow: 1, // Monday is the first day of the week.
107 doy: 4, // The week that contains Jan 4th is the first week of the year.
108 },
109 });
110
111 return nlBe;
112
113})));