nl.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // moment.js language configuration
  2. // language : 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(window.moment); // Browser 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.lang('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. L : "DD-MM-YYYY",
  30. LL : "D MMMM YYYY",
  31. LLL : "D MMMM YYYY LT",
  32. LLLL : "dddd D MMMM YYYY LT"
  33. },
  34. calendar : {
  35. sameDay: '[vandaag om] LT',
  36. nextDay: '[morgen om] LT',
  37. nextWeek: 'dddd [om] LT',
  38. lastDay: '[gisteren om] LT',
  39. lastWeek: '[afgelopen] dddd [om] LT',
  40. sameElse: 'L'
  41. },
  42. relativeTime : {
  43. future : "over %s",
  44. past : "%s geleden",
  45. s : "een paar seconden",
  46. m : "één minuut",
  47. mm : "%d minuten",
  48. h : "één uur",
  49. hh : "%d uur",
  50. d : "één dag",
  51. dd : "%d dagen",
  52. M : "één maand",
  53. MM : "%d maanden",
  54. y : "één jaar",
  55. yy : "%d jaar"
  56. },
  57. ordinal : function (number) {
  58. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  59. },
  60. week : {
  61. dow : 1, // Monday is the first day of the week.
  62. doy : 4 // The week that contains Jan 4th is the first week of the year.
  63. }
  64. });
  65. }));