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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. //! moment.js locale configuration
  2. //! locale : Spanish (United States) [es-us]
  3. //! author : bustta : https://github.com/bustta
  4. //! author : chrisrodz : https://github.com/chrisrodz
  5. ;(function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined'
  7. && typeof require === 'function' ? factory(require('../moment')) :
  8. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  9. factory(global.moment)
  10. }(this, (function (moment) { 'use strict';
  11. //! moment.js locale configuration
  12. var monthsShortDot =
  13. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  14. '_'
  15. ),
  16. monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17. monthsParse = [
  18. /^ene/i,
  19. /^feb/i,
  20. /^mar/i,
  21. /^abr/i,
  22. /^may/i,
  23. /^jun/i,
  24. /^jul/i,
  25. /^ago/i,
  26. /^sep/i,
  27. /^oct/i,
  28. /^nov/i,
  29. /^dic/i,
  30. ],
  31. monthsRegex =
  32. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  33. var esUs = moment.defineLocale('es-us', {
  34. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  35. '_'
  36. ),
  37. monthsShort: function (m, format) {
  38. if (!m) {
  39. return monthsShortDot;
  40. } else if (/-MMM-/.test(format)) {
  41. return monthsShort[m.month()];
  42. } else {
  43. return monthsShortDot[m.month()];
  44. }
  45. },
  46. monthsRegex: monthsRegex,
  47. monthsShortRegex: monthsRegex,
  48. monthsStrictRegex:
  49. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  50. monthsShortStrictRegex:
  51. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  52. monthsParse: monthsParse,
  53. longMonthsParse: monthsParse,
  54. shortMonthsParse: monthsParse,
  55. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  56. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  57. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  58. weekdaysParseExact: true,
  59. longDateFormat: {
  60. LT: 'h:mm A',
  61. LTS: 'h:mm:ss A',
  62. L: 'MM/DD/YYYY',
  63. LL: 'D [de] MMMM [de] YYYY',
  64. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  65. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  66. },
  67. calendar: {
  68. sameDay: function () {
  69. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  70. },
  71. nextDay: function () {
  72. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  73. },
  74. nextWeek: function () {
  75. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  76. },
  77. lastDay: function () {
  78. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  79. },
  80. lastWeek: function () {
  81. return (
  82. '[el] dddd [pasado a la' +
  83. (this.hours() !== 1 ? 's' : '') +
  84. '] LT'
  85. );
  86. },
  87. sameElse: 'L',
  88. },
  89. relativeTime: {
  90. future: 'en %s',
  91. past: 'hace %s',
  92. s: 'unos segundos',
  93. ss: '%d segundos',
  94. m: 'un minuto',
  95. mm: '%d minutos',
  96. h: 'una hora',
  97. hh: '%d horas',
  98. d: 'un día',
  99. dd: '%d días',
  100. w: 'una semana',
  101. ww: '%d semanas',
  102. M: 'un mes',
  103. MM: '%d meses',
  104. y: 'un año',
  105. yy: '%d años',
  106. },
  107. dayOfMonthOrdinalParse: /\d{1,2}º/,
  108. ordinal: '%dº',
  109. week: {
  110. dow: 0, // Sunday is the first day of the week.
  111. doy: 6, // The week that contains Jan 6th is the first week of the year.
  112. },
  113. });
  114. return esUs;
  115. })));