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 var monthsShort
= 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
16 var 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];
17 var 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;
19 var es
= moment
.defineLocale('es', {
20 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
21 monthsShort : function (m
, format
) {
23 return monthsShortDot
;
24 } else if (/-MMM-/.test(format
)) {
25 return monthsShort
[m
.month()];
27 return monthsShortDot
[m
.month()];
30 monthsRegex
: monthsRegex
,
31 monthsShortRegex
: monthsRegex
,
32 monthsStrictRegex
: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
33 monthsShortStrictRegex
: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
34 monthsParse
: monthsParse
,
35 longMonthsParse
: monthsParse
,
36 shortMonthsParse
: monthsParse
,
37 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
38 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
39 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
40 weekdaysParseExact
: true,
45 LL
: 'D [de] MMMM [de] YYYY',
46 LLL
: 'D [de] MMMM [de] YYYY H:mm',
47 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
50 sameDay : function () {
51 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
53 nextDay : function () {
54 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
56 nextWeek : function () {
57 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
59 lastDay : function () {
60 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
62 lastWeek : function () {
63 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
82 dayOfMonthOrdinalParse
: /\d{1,2}º/,
85 dow
: 1, // Monday is the first day of the week.
86 doy
: 4 // The week that contains Jan 4th is the first week of the year.