Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

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