es-us.js 2.8 KB

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