PageRenderTime 30ms CodeModel.GetById 20ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/moment/src/locale/nl.js

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