resources: Bump moment.js from 2.15.0 to 2.19.3
[lhc/web/wiklou.git] / resources / lib / moment / locale / es.js
1 //! moment.js locale configuration
2 //! locale : Spanish [es]
3 //! author : Julio Napurí : https://github.com/julionc
4
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) :
9 factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12
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('_');
15
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;
18
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) {
22 if (!m) {
23 return monthsShortDot;
24 } else if (/-MMM-/.test(format)) {
25 return monthsShort[m.month()];
26 } else {
27 return monthsShortDot[m.month()];
28 }
29 },
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,
41 longDateFormat : {
42 LT : 'H:mm',
43 LTS : 'H:mm:ss',
44 L : 'DD/MM/YYYY',
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'
48 },
49 calendar : {
50 sameDay : function () {
51 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
52 },
53 nextDay : function () {
54 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
55 },
56 nextWeek : function () {
57 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
58 },
59 lastDay : function () {
60 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
61 },
62 lastWeek : function () {
63 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
64 },
65 sameElse : 'L'
66 },
67 relativeTime : {
68 future : 'en %s',
69 past : 'hace %s',
70 s : 'unos segundos',
71 m : 'un minuto',
72 mm : '%d minutos',
73 h : 'una hora',
74 hh : '%d horas',
75 d : 'un día',
76 dd : '%d días',
77 M : 'un mes',
78 MM : '%d meses',
79 y : 'un año',
80 yy : '%d años'
81 },
82 dayOfMonthOrdinalParse : /\d{1,2}º/,
83 ordinal : '%dº',
84 week : {
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.
87 }
88 });
89
90 return es;
91
92 })));