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.

73 lines
2.8 KiB

  1. //! moment.js locale configuration
  2. //! locale : german (de)
  3. //! author : lluchs : https://github.com/lluchs
  4. //! author: Menelion Elensúle: https://github.com/Oire
  5. (function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  8. factory(global.moment)
  9. }(this, function (moment) { 'use strict';
  10. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  11. var format = {
  12. 'm': ['eine Minute', 'einer Minute'],
  13. 'h': ['eine Stunde', 'einer Stunde'],
  14. 'd': ['ein Tag', 'einem Tag'],
  15. 'dd': [number + ' Tage', number + ' Tagen'],
  16. 'M': ['ein Monat', 'einem Monat'],
  17. 'MM': [number + ' Monate', number + ' Monaten'],
  18. 'y': ['ein Jahr', 'einem Jahr'],
  19. 'yy': [number + ' Jahre', number + ' Jahren']
  20. };
  21. return withoutSuffix ? format[key][0] : format[key][1];
  22. }
  23. var de = moment.defineLocale('de', {
  24. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  25. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  26. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  27. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  28. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  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 LT',
  35. LLLL : 'dddd, D. MMMM YYYY LT'
  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. m : processRelativeTime,
  50. mm : '%d Minuten',
  51. h : processRelativeTime,
  52. hh : '%d Stunden',
  53. d : processRelativeTime,
  54. dd : processRelativeTime,
  55. M : processRelativeTime,
  56. MM : processRelativeTime,
  57. y : processRelativeTime,
  58. yy : processRelativeTime
  59. },
  60. ordinalParse: /\d{1,2}\./,
  61. ordinal : '%d.',
  62. week : {
  63. dow : 1, // Monday is the first day of the week.
  64. doy : 4 // The week that contains Jan 4th is the first week of the year.
  65. }
  66. });
  67. return de;
  68. }));