Node-Red configuration
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

de-ch.js 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //! moment.js locale configuration
  2. //! locale : German (Switzerland) [de-ch]
  3. //! author : sschueller : https://github.com/sschueller
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. //! moment.js locale configuration
  11. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  12. var format = {
  13. m: ['eine Minute', 'einer Minute'],
  14. h: ['eine Stunde', 'einer Stunde'],
  15. d: ['ein Tag', 'einem Tag'],
  16. dd: [number + ' Tage', number + ' Tagen'],
  17. w: ['eine Woche', 'einer Woche'],
  18. M: ['ein Monat', 'einem Monat'],
  19. MM: [number + ' Monate', number + ' Monaten'],
  20. y: ['ein Jahr', 'einem Jahr'],
  21. yy: [number + ' Jahre', number + ' Jahren'],
  22. };
  23. return withoutSuffix ? format[key][0] : format[key][1];
  24. }
  25. var deCh = moment.defineLocale('de-ch', {
  26. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  27. '_'
  28. ),
  29. monthsShort:
  30. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  31. monthsParseExact: true,
  32. weekdays:
  33. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  34. '_'
  35. ),
  36. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  37. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  38. weekdaysParseExact: true,
  39. longDateFormat: {
  40. LT: 'HH:mm',
  41. LTS: 'HH:mm:ss',
  42. L: 'DD.MM.YYYY',
  43. LL: 'D. MMMM YYYY',
  44. LLL: 'D. MMMM YYYY HH:mm',
  45. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  46. },
  47. calendar: {
  48. sameDay: '[heute um] LT [Uhr]',
  49. sameElse: 'L',
  50. nextDay: '[morgen um] LT [Uhr]',
  51. nextWeek: 'dddd [um] LT [Uhr]',
  52. lastDay: '[gestern um] LT [Uhr]',
  53. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  54. },
  55. relativeTime: {
  56. future: 'in %s',
  57. past: 'vor %s',
  58. s: 'ein paar Sekunden',
  59. ss: '%d Sekunden',
  60. m: processRelativeTime,
  61. mm: '%d Minuten',
  62. h: processRelativeTime,
  63. hh: '%d Stunden',
  64. d: processRelativeTime,
  65. dd: processRelativeTime,
  66. w: processRelativeTime,
  67. ww: '%d Wochen',
  68. M: processRelativeTime,
  69. MM: processRelativeTime,
  70. y: processRelativeTime,
  71. yy: processRelativeTime,
  72. },
  73. dayOfMonthOrdinalParse: /\d{1,2}\./,
  74. ordinal: '%d.',
  75. week: {
  76. dow: 1, // Monday is the first day of the week.
  77. doy: 4, // The week that contains Jan 4th is the first week of the year.
  78. },
  79. });
  80. return deCh;
  81. })));