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.

69 lines
2.5 KiB

  1. //! moment.js locale configuration
  2. //! locale : dutch (nl)
  3. //! author : Joris Röling : https://github.com/jjupiter
  4. (function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
  6. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  7. factory(global.moment)
  8. }(this, function (moment) { 'use strict';
  9. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  10. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  11. var nl = moment.defineLocale('nl', {
  12. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  13. monthsShort : function (m, format) {
  14. if (/-MMM-/.test(format)) {
  15. return monthsShortWithoutDots[m.month()];
  16. } else {
  17. return monthsShortWithDots[m.month()];
  18. }
  19. },
  20. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  21. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  22. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  23. longDateFormat : {
  24. LT : 'HH:mm',
  25. LTS : 'LT:ss',
  26. L : 'DD-MM-YYYY',
  27. LL : 'D MMMM YYYY',
  28. LLL : 'D MMMM YYYY LT',
  29. LLLL : 'dddd D MMMM YYYY LT'
  30. },
  31. calendar : {
  32. sameDay: '[vandaag om] LT',
  33. nextDay: '[morgen om] LT',
  34. nextWeek: 'dddd [om] LT',
  35. lastDay: '[gisteren om] LT',
  36. lastWeek: '[afgelopen] dddd [om] LT',
  37. sameElse: 'L'
  38. },
  39. relativeTime : {
  40. future : 'over %s',
  41. past : '%s geleden',
  42. s : 'een paar seconden',
  43. m : 'één minuut',
  44. mm : '%d minuten',
  45. h : 'één uur',
  46. hh : '%d uur',
  47. d : 'één dag',
  48. dd : '%d dagen',
  49. M : 'één maand',
  50. MM : '%d maanden',
  51. y : 'één jaar',
  52. yy : '%d jaar'
  53. },
  54. ordinalParse: /\d{1,2}(ste|de)/,
  55. ordinal : function (number) {
  56. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  57. },
  58. week : {
  59. dow : 1, // Monday is the first day of the week.
  60. doy : 4 // The week that contains Jan 4th is the first week of the year.
  61. }
  62. });
  63. return nl;
  64. }));