LaravelTest
115 строк · 3.8 Кб
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) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(16'_'17),18monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(19'_'20),21monthsParse = [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],35monthsRegex = /^(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
37var nl = moment.defineLocale('nl', {38months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(39'_'40),41monthsShort: function (m, format) {42if (!m) {43return monthsShortWithDots;44} else if (/-MMM-/.test(format)) {45return monthsShortWithoutDots[m.month()];46} else {47return monthsShortWithDots[m.month()];48}49},50
51monthsRegex: monthsRegex,52monthsShortRegex: monthsRegex,53monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,54monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,55
56monthsParse: monthsParse,57longMonthsParse: monthsParse,58shortMonthsParse: monthsParse,59
60weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(61'_'62),63weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),64weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),65weekdaysParseExact: true,66longDateFormat: {67LT: 'HH:mm',68LTS: 'HH:mm:ss',69L: 'DD-MM-YYYY',70LL: 'D MMMM YYYY',71LLL: 'D MMMM YYYY HH:mm',72LLLL: 'dddd D MMMM YYYY HH:mm',73},74calendar: {75sameDay: '[vandaag om] LT',76nextDay: '[morgen om] LT',77nextWeek: 'dddd [om] LT',78lastDay: '[gisteren om] LT',79lastWeek: '[afgelopen] dddd [om] LT',80sameElse: 'L',81},82relativeTime: {83future: 'over %s',84past: '%s geleden',85s: 'een paar seconden',86ss: '%d seconden',87m: 'één minuut',88mm: '%d minuten',89h: 'één uur',90hh: '%d uur',91d: 'één dag',92dd: '%d dagen',93w: 'één week',94ww: '%d weken',95M: 'één maand',96MM: '%d maanden',97y: 'één jaar',98yy: '%d jaar',99},100dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,101ordinal: function (number) {102return (103number +104(number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')105);106},107week: {108dow: 1, // Monday is the first day of the week.109doy: 4, // The week that contains Jan 4th is the first week of the year.110},111});112
113return nl;114
115})));116