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.
 
 
 
 

88 lines
3.1 KiB

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