nl-be.js 3.8 KB

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