de.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // moment.js language configuration
  2. // language : german (de)
  3. // author : lluchs : https://github.com/lluchs
  4. // author: Menelion Elensúle: https://github.com/Oire
  5. (function (factory) {
  6. if (typeof define === 'function' && define.amd) {
  7. define(['moment'], factory); // AMD
  8. } else if (typeof exports === 'object') {
  9. module.exports = factory(require('../moment')); // Node
  10. } else {
  11. factory(window.moment); // Browser global
  12. }
  13. }(function (moment) {
  14. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  15. var format = {
  16. 'm': ['eine Minute', 'einer Minute'],
  17. 'h': ['eine Stunde', 'einer Stunde'],
  18. 'd': ['ein Tag', 'einem Tag'],
  19. 'dd': [number + ' Tage', number + ' Tagen'],
  20. 'M': ['ein Monat', 'einem Monat'],
  21. 'MM': [number + ' Monate', number + ' Monaten'],
  22. 'y': ['ein Jahr', 'einem Jahr'],
  23. 'yy': [number + ' Jahre', number + ' Jahren']
  24. };
  25. return withoutSuffix ? format[key][0] : format[key][1];
  26. }
  27. return moment.lang('de', {
  28. months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
  29. monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
  30. weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
  31. weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
  32. weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
  33. longDateFormat : {
  34. LT: "HH:mm [Uhr]",
  35. L : "DD.MM.YYYY",
  36. LL : "D. MMMM YYYY",
  37. LLL : "D. MMMM YYYY LT",
  38. LLLL : "dddd, D. MMMM YYYY LT"
  39. },
  40. calendar : {
  41. sameDay: "[Heute um] LT",
  42. sameElse: "L",
  43. nextDay: '[Morgen um] LT',
  44. nextWeek: 'dddd [um] LT',
  45. lastDay: '[Gestern um] LT',
  46. lastWeek: '[letzten] dddd [um] LT'
  47. },
  48. relativeTime : {
  49. future : "in %s",
  50. past : "vor %s",
  51. s : "ein paar Sekunden",
  52. m : processRelativeTime,
  53. mm : "%d Minuten",
  54. h : processRelativeTime,
  55. hh : "%d Stunden",
  56. d : processRelativeTime,
  57. dd : processRelativeTime,
  58. M : processRelativeTime,
  59. MM : processRelativeTime,
  60. y : processRelativeTime,
  61. yy : processRelativeTime
  62. },
  63. ordinal : '%d.',
  64. week : {
  65. dow : 1, // Monday is the first day of the week.
  66. doy : 4 // The week that contains Jan 4th is the first week of the year.
  67. }
  68. });
  69. }));