1 //! moment.js locale configuration
2 //! locale : Spanish [es]
3 //! author : Julio Napurí : https://github.com/julionc
5 ;(function (global
, factory
) {
6 typeof exports
=== 'object' && typeof module
!== 'undefined'
7 && typeof require
=== 'function' ? factory(require('../moment')) :
8 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
10 }(this, function (moment
) { 'use strict';
13 var monthsShortDot
= 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
14 monthsShort
= 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
16 var es
= moment
.defineLocale('es', {
17 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
18 monthsShort : function (m
, format
) {
19 if (/-MMM-/.test(format
)) {
20 return monthsShort
[m
.month()];
22 return monthsShortDot
[m
.month()];
25 monthsParseExact
: true,
26 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
27 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
28 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
29 weekdaysParseExact
: true,
34 LL
: 'D [de] MMMM [de] YYYY',
35 LLL
: 'D [de] MMMM [de] YYYY H:mm',
36 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
39 sameDay : function () {
40 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
42 nextDay : function () {
43 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
45 nextWeek : function () {
46 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
48 lastDay : function () {
49 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
51 lastWeek : function () {
52 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
71 ordinalParse
: /\d{1,2}º/,
74 dow
: 1, // Monday is the first day of the week.
75 doy
: 4 // The week that contains Jan 4th is the first week of the year.