Node-Red configuration
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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. w: ['eine Woche', 'einer Woche'],
  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. export default moment.defineLocale('de', {
  22. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  23. '_'
  24. ),
  25. monthsShort:
  26. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  27. monthsParseExact: true,
  28. weekdays:
  29. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  30. '_'
  31. ),
  32. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  33. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  34. weekdaysParseExact: true,
  35. longDateFormat: {
  36. LT: 'HH:mm',
  37. LTS: 'HH:mm:ss',
  38. L: 'DD.MM.YYYY',
  39. LL: 'D. MMMM YYYY',
  40. LLL: 'D. MMMM YYYY HH:mm',
  41. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  42. },
  43. calendar: {
  44. sameDay: '[heute um] LT [Uhr]',
  45. sameElse: 'L',
  46. nextDay: '[morgen um] LT [Uhr]',
  47. nextWeek: 'dddd [um] LT [Uhr]',
  48. lastDay: '[gestern um] LT [Uhr]',
  49. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  50. },
  51. relativeTime: {
  52. future: 'in %s',
  53. past: 'vor %s',
  54. s: 'ein paar Sekunden',
  55. ss: '%d Sekunden',
  56. m: processRelativeTime,
  57. mm: '%d Minuten',
  58. h: processRelativeTime,
  59. hh: '%d Stunden',
  60. d: processRelativeTime,
  61. dd: processRelativeTime,
  62. w: processRelativeTime,
  63. ww: '%d Wochen',
  64. M: processRelativeTime,
  65. MM: processRelativeTime,
  66. y: processRelativeTime,
  67. yy: processRelativeTime,
  68. },
  69. dayOfMonthOrdinalParse: /\d{1,2}\./,
  70. ordinal: '%d.',
  71. week: {
  72. dow: 1, // Monday is the first day of the week.
  73. doy: 4, // The week that contains Jan 4th is the first week of the year.
  74. },
  75. });