de-at.js 2.7 KB

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