Debian Codegraph @

resources/lib/moment/locale/nl-be.js

raw symbols SCIP
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 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
16 '_'
17 ),
18 monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
19 '_'
20 ),
21 monthsParse = [
22 /^jan/i,
23 /^feb/i,
24 /^maart|mrt.?$/i,
25 /^apr/i,
26 /^mei$/i,
27 /^jun[i.]?$/i,
28 /^jul[i.]?$/i,
29 /^aug/i,
30 /^sep/i,
31 /^okt/i,
32 /^nov/i,
33 /^dec/i,
34 ],
35 monthsRegex = /^(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;
36
37 var nlBe = moment.defineLocale('nl-be', {
38 months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
39 '_'
40 ),
41 monthsShort: function (m, format) {
42 if (!m) {
43 return monthsShortWithDots;
44 } else if (/-MMM-/.test(format)) {
45 return monthsShortWithoutDots[m.month()];
46 } else {
47 return monthsShortWithDots[m.month()];
48 }
49 },
50
51 monthsRegex: monthsRegex,
52 monthsShortRegex: monthsRegex,
53 monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
54 monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
55
56 monthsParse: monthsParse,
57 longMonthsParse: monthsParse,
58 shortMonthsParse: monthsParse,
59
60 weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
61 '_'
62 ),
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 })));