Ohm-Management - Projektarbeit B-ME
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.

de-at.js 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  9. var format = {
  10. 'm': ['eine Minute', 'einer Minute'],
  11. 'h': ['eine Stunde', 'einer Stunde'],
  12. 'd': ['ein Tag', 'einem Tag'],
  13. 'dd': [number + ' Tage', number + ' Tagen'],
  14. 'M': ['ein Monat', 'einem Monat'],
  15. 'MM': [number + ' Monate', number + ' Monaten'],
  16. 'y': ['ein Jahr', 'einem Jahr'],
  17. 'yy': [number + ' Jahre', number + ' Jahren']
  18. };
  19. return withoutSuffix ? format[key][0] : format[key][1];
  20. }
  21. var deAt = moment.defineLocale('de-at', {
  22. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  23. monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  24. monthsParseExact : true,
  25. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  26. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  27. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  28. weekdaysParseExact : true,
  29. longDateFormat : {
  30. LT: 'HH:mm',
  31. LTS: 'HH:mm:ss',
  32. L : 'DD.MM.YYYY',
  33. LL : 'D. MMMM YYYY',
  34. LLL : 'D. MMMM YYYY HH:mm',
  35. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  36. },
  37. calendar : {
  38. sameDay: '[heute um] LT [Uhr]',
  39. sameElse: 'L',
  40. nextDay: '[morgen um] LT [Uhr]',
  41. nextWeek: 'dddd [um] LT [Uhr]',
  42. lastDay: '[gestern um] LT [Uhr]',
  43. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  44. },
  45. relativeTime : {
  46. future : 'in %s',
  47. past : 'vor %s',
  48. s : 'ein paar Sekunden',
  49. ss : '%d 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. dayOfMonthOrdinalParse: /\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 deAt;
  69. })));