2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2017-04-20 00:24:20 -04:00
|
|
|
//! locale : Spanish [es]
|
2016-02-05 15:42:48 -05:00
|
|
|
//! author : Julio Napurí : https://github.com/julionc
|
2013-06-07 04:03:09 -04:00
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
|
|
|
|
var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
var es = moment.defineLocale('es', {
|
|
|
|
months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
|
|
|
monthsShort : function (m, format) {
|
|
|
|
if (!m) {
|
|
|
|
return monthsShortDot;
|
|
|
|
} else if (/-MMM-/.test(format)) {
|
|
|
|
return monthsShort[m.month()];
|
|
|
|
} else {
|
|
|
|
return monthsShortDot[m.month()];
|
|
|
|
}
|
|
|
|
},
|
|
|
|
monthsParseExact : true,
|
|
|
|
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',
|
|
|
|
LTS : 'H:mm:ss',
|
|
|
|
L : 'DD/MM/YYYY',
|
|
|
|
LL : 'D [de] MMMM [de] YYYY',
|
|
|
|
LLL : 'D [de] MMMM [de] YYYY H:mm',
|
|
|
|
LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
|
|
|
|
},
|
|
|
|
calendar : {
|
|
|
|
sameDay : function () {
|
|
|
|
return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
2013-06-07 04:03:09 -04:00
|
|
|
},
|
2017-04-20 00:24:20 -04:00
|
|
|
nextDay : function () {
|
|
|
|
return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
2013-06-07 04:03:09 -04:00
|
|
|
},
|
2017-04-20 00:24:20 -04:00
|
|
|
nextWeek : function () {
|
|
|
|
return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
2013-06-07 04:03:09 -04:00
|
|
|
},
|
2017-04-20 00:24:20 -04:00
|
|
|
lastDay : function () {
|
|
|
|
return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
2013-06-07 04:03:09 -04:00
|
|
|
},
|
2017-04-20 00:24:20 -04:00
|
|
|
lastWeek : function () {
|
|
|
|
return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
|
|
|
},
|
|
|
|
sameElse : 'L'
|
|
|
|
},
|
|
|
|
relativeTime : {
|
|
|
|
future : 'en %s',
|
|
|
|
past : 'hace %s',
|
|
|
|
s : 'unos segundos',
|
|
|
|
m : 'un minuto',
|
|
|
|
mm : '%d minutos',
|
|
|
|
h : 'una hora',
|
|
|
|
hh : '%d horas',
|
|
|
|
d : 'un día',
|
|
|
|
dd : '%d días',
|
|
|
|
M : 'un mes',
|
|
|
|
MM : '%d meses',
|
|
|
|
y : 'un año',
|
|
|
|
yy : '%d años'
|
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse : /\d{1,2}º/,
|
|
|
|
ordinal : '%dº',
|
|
|
|
week : {
|
|
|
|
dow : 1, // Monday is the first day of the week.
|
|
|
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
|
|
}
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
return es;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|