de-at.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //! moment.js locale configuration
  2. //! locale : 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. //! 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. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  14. var format = {
  15. 'm': ['eine Minute', 'einer Minute'],
  16. 'h': ['eine Stunde', 'einer Stunde'],
  17. 'd': ['ein Tag', 'einem Tag'],
  18. 'dd': [number + ' Tage', number + ' Tagen'],
  19. 'M': ['ein Monat', 'einem Monat'],
  20. 'MM': [number + ' Monate', number + ' Monaten'],
  21. 'y': ['ein Jahr', 'einem Jahr'],
  22. 'yy': [number + ' Jahre', number + ' Jahren']
  23. };
  24. return withoutSuffix ? format[key][0] : format[key][1];
  25. }
  26. var de_at = moment.defineLocale('de-at', {
  27. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  28. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  29. monthsParseExact : true,
  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. weekdaysParseExact : true,
  34. longDateFormat : {
  35. LT: 'HH:mm',
  36. LTS: 'HH:mm:ss',
  37. L : 'DD.MM.YYYY',
  38. LL : 'D. MMMM YYYY',
  39. LLL : 'D. MMMM YYYY HH:mm',
  40. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  41. },
  42. calendar : {
  43. sameDay: '[heute um] LT [Uhr]',
  44. sameElse: 'L',
  45. nextDay: '[morgen um] LT [Uhr]',
  46. nextWeek: 'dddd [um] LT [Uhr]',
  47. lastDay: '[gestern um] LT [Uhr]',
  48. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  49. },
  50. relativeTime : {
  51. future : 'in %s',
  52. past : 'vor %s',
  53. s : 'ein paar Sekunden',
  54. m : processRelativeTime,
  55. mm : '%d Minuten',
  56. h : processRelativeTime,
  57. hh : '%d Stunden',
  58. d : processRelativeTime,
  59. dd : processRelativeTime,
  60. M : processRelativeTime,
  61. MM : processRelativeTime,
  62. y : processRelativeTime,
  63. yy : processRelativeTime
  64. },
  65. ordinalParse: /\d{1,2}\./,
  66. ordinal : '%d.',
  67. week : {
  68. dow : 1, // Monday is the first day of the week.
  69. doy : 4 // The week that contains Jan 4th is the first week of the year.
  70. }
  71. });
  72. return de_at;
  73. }));