nl.js 2.5 KB

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