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.js 2.4KB

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