es-us.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  9. monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  10. var esUs = moment.defineLocale('es-us', {
  11. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  12. monthsShort : function (m, format) {
  13. if (!m) {
  14. return monthsShortDot;
  15. } else if (/-MMM-/.test(format)) {
  16. return monthsShort[m.month()];
  17. } else {
  18. return monthsShortDot[m.month()];
  19. }
  20. },
  21. monthsParseExact : true,
  22. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  23. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  24. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  25. weekdaysParseExact : true,
  26. longDateFormat : {
  27. LT : 'h:mm A',
  28. LTS : 'h:mm:ss A',
  29. L : 'MM/DD/YYYY',
  30. LL : 'MMMM [de] D [de] YYYY',
  31. LLL : 'MMMM [de] D [de] YYYY h:mm A',
  32. LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
  33. },
  34. calendar : {
  35. sameDay : function () {
  36. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  37. },
  38. nextDay : function () {
  39. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  40. },
  41. nextWeek : function () {
  42. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  43. },
  44. lastDay : function () {
  45. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  46. },
  47. lastWeek : function () {
  48. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  49. },
  50. sameElse : 'L'
  51. },
  52. relativeTime : {
  53. future : 'en %s',
  54. past : 'hace %s',
  55. s : 'unos segundos',
  56. ss : '%d segundos',
  57. m : 'un minuto',
  58. mm : '%d minutos',
  59. h : 'una hora',
  60. hh : '%d horas',
  61. d : 'un día',
  62. dd : '%d días',
  63. M : 'un mes',
  64. MM : '%d meses',
  65. y : 'un año',
  66. yy : '%d años'
  67. },
  68. dayOfMonthOrdinalParse : /\d{1,2}º/,
  69. ordinal : '%dº',
  70. week : {
  71. dow : 0, // Sunday is the first day of the week.
  72. doy : 6 // The week that contains Jan 1st is the first week of the year.
  73. }
  74. });
  75. return esUs;
  76. })));