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.

es.js 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //! moment.js locale configuration
  2. //! locale : Spanish [es]
  3. //! author : Julio Napurí : https://github.com/julionc
  4. import moment from '../moment';
  5. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  6. monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  7. var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  8. var monthsRegex = /^(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;
  9. export default moment.defineLocale('es', {
  10. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  11. monthsShort : function (m, format) {
  12. if (!m) {
  13. return monthsShortDot;
  14. } else if (/-MMM-/.test(format)) {
  15. return monthsShort[m.month()];
  16. } else {
  17. return monthsShortDot[m.month()];
  18. }
  19. },
  20. monthsRegex : monthsRegex,
  21. monthsShortRegex : monthsRegex,
  22. monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  23. monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  24. monthsParse : monthsParse,
  25. longMonthsParse : monthsParse,
  26. shortMonthsParse : monthsParse,
  27. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  28. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  29. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  30. weekdaysParseExact : true,
  31. longDateFormat : {
  32. LT : 'H:mm',
  33. LTS : 'H:mm:ss',
  34. L : 'DD/MM/YYYY',
  35. LL : 'D [de] MMMM [de] YYYY',
  36. LLL : 'D [de] MMMM [de] YYYY H:mm',
  37. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  38. },
  39. calendar : {
  40. sameDay : function () {
  41. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  42. },
  43. nextDay : function () {
  44. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  45. },
  46. nextWeek : function () {
  47. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  48. },
  49. lastDay : function () {
  50. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  51. },
  52. lastWeek : function () {
  53. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  54. },
  55. sameElse : 'L'
  56. },
  57. relativeTime : {
  58. future : 'en %s',
  59. past : 'hace %s',
  60. s : 'unos segundos',
  61. ss : '%d segundos',
  62. m : 'un minuto',
  63. mm : '%d minutos',
  64. h : 'una hora',
  65. hh : '%d horas',
  66. d : 'un día',
  67. dd : '%d días',
  68. M : 'un mes',
  69. MM : '%d meses',
  70. y : 'un año',
  71. yy : '%d años'
  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. });