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-be.js 2.9KB

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