2019-06-10 15:38:54 +00:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 21:12:30 +00:00
|
|
|
//! locale : Spanish (United States) [es-us]
|
|
|
|
//! author : bustta : https://github.com/bustta
|
|
|
|
//! author : chrisrodz : https://github.com/chrisrodz
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
|
|
factory(global.moment)
|
|
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
|
2020-07-23 21:12:30 +00:00
|
|
|
//! moment.js locale configuration
|
2019-06-10 15:38:54 +00:00
|
|
|
|
2020-07-23 21:12:30 +00:00
|
|
|
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
|
|
|
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,
|
|
|
|
],
|
|
|
|
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;
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
var esUs = moment.defineLocale('es-us', {
|
2020-07-23 21:12:30 +00:00
|
|
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: function (m, format) {
|
2019-06-10 15:38:54 +00:00
|
|
|
if (!m) {
|
|
|
|
return monthsShortDot;
|
|
|
|
} else if (/-MMM-/.test(format)) {
|
|
|
|
return monthsShort[m.month()];
|
|
|
|
} else {
|
|
|
|
return monthsShortDot[m.month()];
|
|
|
|
}
|
|
|
|
},
|
|
|
|
monthsRegex: monthsRegex,
|
|
|
|
monthsShortRegex: monthsRegex,
|
|
|
|
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
|
|
|
|
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
|
|
|
|
monthsParse: monthsParse,
|
|
|
|
longMonthsParse: monthsParse,
|
|
|
|
shortMonthsParse: monthsParse,
|
2020-07-23 21:12:30 +00:00
|
|
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
|
|
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
|
|
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'h:mm A',
|
|
|
|
LTS: 'h:mm:ss A',
|
|
|
|
L: 'MM/DD/YYYY',
|
|
|
|
LL: 'D [de] MMMM [de] YYYY',
|
|
|
|
LLL: 'D [de] MMMM [de] YYYY h:mm A',
|
|
|
|
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
calendar: {
|
|
|
|
sameDay: function () {
|
|
|
|
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
nextDay: function () {
|
|
|
|
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
nextWeek: function () {
|
|
|
|
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
lastDay: function () {
|
|
|
|
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
lastWeek: function () {
|
|
|
|
return (
|
|
|
|
'[el] dddd [pasado a la' +
|
|
|
|
(this.hours() !== 1 ? 's' : '') +
|
|
|
|
'] LT'
|
|
|
|
);
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
sameElse: 'L',
|
|
|
|
},
|
|
|
|
relativeTime: {
|
|
|
|
future: 'en %s',
|
|
|
|
past: 'hace %s',
|
|
|
|
s: 'unos segundos',
|
|
|
|
ss: '%d segundos',
|
|
|
|
m: 'un minuto',
|
|
|
|
mm: '%d minutos',
|
|
|
|
h: 'una hora',
|
|
|
|
hh: '%d horas',
|
|
|
|
d: 'un día',
|
|
|
|
dd: '%d días',
|
2020-11-24 07:16:03 +00:00
|
|
|
w: 'una semana',
|
|
|
|
ww: '%d semanas',
|
2020-07-23 21:12:30 +00:00
|
|
|
M: 'un mes',
|
|
|
|
MM: '%d meses',
|
|
|
|
y: 'un año',
|
|
|
|
yy: '%d años',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
|
|
ordinal: '%dº',
|
|
|
|
week: {
|
|
|
|
dow: 0, // Sunday is the first day of the week.
|
|
|
|
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return esUs;
|
|
|
|
|
|
|
|
})));
|