1 |
|
2 |
|
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) :
|
7 | factory(global.moment)
|
8 | }(this, (function (moment) { 'use strict';
|
9 |
|
10 |
|
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('_');
|
13 |
|
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;
|
16 |
|
17 | var esDo = moment.defineLocale('es-do', {
|
18 | months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
19 | monthsShort : function (m, format) {
|
20 | if (!m) {
|
21 | return monthsShortDot;
|
22 | } else if (/-MMM-/.test(format)) {
|
23 | return monthsShort[m.month()];
|
24 | } else {
|
25 | return monthsShortDot[m.month()];
|
26 | }
|
27 | },
|
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,
|
39 | longDateFormat : {
|
40 | LT : 'h:mm A',
|
41 | LTS : 'h:mm:ss A',
|
42 | L : 'DD/MM/YYYY',
|
43 | LL : 'D [de] MMMM [de] YYYY',
|
44 | LLL : 'D [de] MMMM [de] YYYY h:mm A',
|
45 | LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
46 | },
|
47 | calendar : {
|
48 | sameDay : function () {
|
49 | return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
50 | },
|
51 | nextDay : function () {
|
52 | return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
53 | },
|
54 | nextWeek : function () {
|
55 | return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
56 | },
|
57 | lastDay : function () {
|
58 | return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
59 | },
|
60 | lastWeek : function () {
|
61 | return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
|
62 | },
|
63 | sameElse : 'L'
|
64 | },
|
65 | relativeTime : {
|
66 | future : 'en %s',
|
67 | past : 'hace %s',
|
68 | s : 'unos segundos',
|
69 | ss : '%d segundos',
|
70 | m : 'un minuto',
|
71 | mm : '%d minutos',
|
72 | h : 'una hora',
|
73 | hh : '%d horas',
|
74 | d : 'un día',
|
75 | dd : '%d días',
|
76 | M : 'un mes',
|
77 | MM : '%d meses',
|
78 | y : 'un año',
|
79 | yy : '%d años'
|
80 | },
|
81 | dayOfMonthOrdinalParse : /\d{1,2}º/,
|
82 | ordinal : '%dº',
|
83 | week : {
|
84 | dow : 1,
|
85 | doy : 4
|
86 | }
|
87 | });
|
88 |
|
89 | return esDo;
|
90 |
|
91 | })));
|