de-at.js 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //! moment.js locale configuration
  2. //! locale : German (Austria) [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. //! author : Mikolaj Dadela : https://github.com/mik01aj
  7. ;(function (global, factory) {
  8. typeof exports === 'object' && typeof module !== 'undefined'
  9. && typeof require === 'function' ? factory(require('../moment')) :
  10. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  11. factory(global.moment)
  12. }(this, (function (moment) { 'use strict';
  13. //! moment.js locale configuration
  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. w: ['eine Woche', 'einer Woche'],
  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. var deAt = moment.defineLocale('de-at', {
  29. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  30. '_'
  31. ),
  32. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  33. '_'
  34. ),
  35. monthsParseExact: true,
  36. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  37. '_'
  38. ),
  39. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  40. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  41. weekdaysParseExact: true,
  42. longDateFormat: {
  43. LT: 'HH:mm',
  44. LTS: 'HH:mm:ss',
  45. L: 'DD.MM.YYYY',
  46. LL: 'D. MMMM YYYY',
  47. LLL: 'D. MMMM YYYY HH:mm',
  48. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  49. },
  50. calendar: {
  51. sameDay: '[heute um] LT [Uhr]',
  52. sameElse: 'L',
  53. nextDay: '[morgen um] LT [Uhr]',
  54. nextWeek: 'dddd [um] LT [Uhr]',
  55. lastDay: '[gestern um] LT [Uhr]',
  56. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  57. },
  58. relativeTime: {
  59. future: 'in %s',
  60. past: 'vor %s',
  61. s: 'ein paar Sekunden',
  62. ss: '%d Sekunden',
  63. m: processRelativeTime,
  64. mm: '%d Minuten',
  65. h: processRelativeTime,
  66. hh: '%d Stunden',
  67. d: processRelativeTime,
  68. dd: processRelativeTime,
  69. w: processRelativeTime,
  70. ww: '%d Wochen',
  71. M: processRelativeTime,
  72. MM: processRelativeTime,
  73. y: processRelativeTime,
  74. yy: processRelativeTime,
  75. },
  76. dayOfMonthOrdinalParse: /\d{1,2}\./,
  77. ordinal: '%d.',
  78. week: {
  79. dow: 1, // Monday is the first day of the week.
  80. doy: 4, // The week that contains Jan 4th is the first week of the year.
  81. },
  82. });
  83. return deAt;
  84. })));