Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nl.js 3.3KB

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