de-at.js 2.8 KB

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