25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

87 satır
3.0 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. //! author : Mikolaj Dadela : https://github.com/mik01aj
  6. ;(function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined'
  8. && typeof require === 'function' ? factory(require('../moment')) :
  9. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  10. factory(global.moment)
  11. }(this, (function (moment) { 'use strict';
  12. //! moment.js locale configuration
  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 = moment.defineLocale('de', {
  27. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  28. '_'
  29. ),
  30. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  31. '_'
  32. ),
  33. monthsParseExact: true,
  34. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  35. '_'
  36. ),
  37. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  38. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  39. weekdaysParseExact: true,
  40. longDateFormat: {
  41. LT: 'HH:mm',
  42. LTS: 'HH:mm:ss',
  43. L: 'DD.MM.YYYY',
  44. LL: 'D. MMMM YYYY',
  45. LLL: 'D. MMMM YYYY HH:mm',
  46. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  47. },
  48. calendar: {
  49. sameDay: '[heute um] LT [Uhr]',
  50. sameElse: 'L',
  51. nextDay: '[morgen um] LT [Uhr]',
  52. nextWeek: 'dddd [um] LT [Uhr]',
  53. lastDay: '[gestern um] LT [Uhr]',
  54. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  55. },
  56. relativeTime: {
  57. future: 'in %s',
  58. past: 'vor %s',
  59. s: 'ein paar Sekunden',
  60. ss: '%d Sekunden',
  61. m: processRelativeTime,
  62. mm: '%d Minuten',
  63. h: processRelativeTime,
  64. hh: '%d Stunden',
  65. d: processRelativeTime,
  66. dd: processRelativeTime,
  67. M: processRelativeTime,
  68. MM: processRelativeTime,
  69. y: processRelativeTime,
  70. yy: processRelativeTime,
  71. },
  72. dayOfMonthOrdinalParse: /\d{1,2}\./,
  73. ordinal: '%d.',
  74. week: {
  75. dow: 1, // Monday is the first day of the week.
  76. doy: 4, // The week that contains Jan 4th is the first week of the year.
  77. },
  78. });
  79. return de;
  80. })));