1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
11 var monthsShortDot
= 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
12 monthsShort
= 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
14 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];
15 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;
17 var es
= moment
.defineLocale('es', {
18 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
19 monthsShort : function (m
, format
) {
21 return monthsShortDot
;
22 } else if (/-MMM-/.test(format
)) {
23 return monthsShort
[m
.month()];
25 return monthsShortDot
[m
.month()];
28 monthsRegex
: monthsRegex
,
29 monthsShortRegex
: monthsRegex
,
30 monthsStrictRegex
: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
31 monthsShortStrictRegex
: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
32 monthsParse
: monthsParse
,
33 longMonthsParse
: monthsParse
,
34 shortMonthsParse
: monthsParse
,
35 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
36 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
37 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
38 weekdaysParseExact
: true,
43 LL
: 'D [de] MMMM [de] YYYY',
44 LLL
: 'D [de] MMMM [de] YYYY H:mm',
45 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
48 sameDay : function () {
49 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
51 nextDay : function () {
52 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
54 nextWeek : function () {
55 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
57 lastDay : function () {
58 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
60 lastWeek : function () {
61 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
81 dayOfMonthOrdinalParse
: /\d{1,2}º/,
84 dow
: 1, // Monday is the first day of the week.
85 doy
: 4 // The week that contains Jan 4th is the first week of the year.