9aa0535ae870b86334900e470401093f401a182e
[lhc/web/wiklou.git] / resources / lib / moment / locale / es-do.js
1 //! moment.js locale configuration
2 //! locale : Spanish (Dominican Republic) [es-do]
3
4 ;(function (global, factory) {
5 typeof exports === 'object' && typeof module !== 'undefined'
6 && typeof require === 'function' ? factory(require('../moment')) :
7 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
8 factory(global.moment)
9 }(this, (function (moment) { 'use strict';
10
11
12 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
13 var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
14
15 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];
16 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
18 var esDo = moment.defineLocale('es-do', {
19 months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
20 monthsShort : function (m, format) {
21 if (!m) {
22 return monthsShortDot;
23 } else if (/-MMM-/.test(format)) {
24 return monthsShort[m.month()];
25 } else {
26 return monthsShortDot[m.month()];
27 }
28 },
29 monthsRegex: monthsRegex,
30 monthsShortRegex: monthsRegex,
31 monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
32 monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
33 monthsParse: monthsParse,
34 longMonthsParse: monthsParse,
35 shortMonthsParse: monthsParse,
36 weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
37 weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
38 weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
39 weekdaysParseExact : true,
40 longDateFormat : {
41 LT : 'h:mm A',
42 LTS : 'h:mm:ss A',
43 L : 'DD/MM/YYYY',
44 LL : 'D [de] MMMM [de] YYYY',
45 LLL : 'D [de] MMMM [de] YYYY h:mm A',
46 LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
47 },
48 calendar : {
49 sameDay : function () {
50 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
51 },
52 nextDay : function () {
53 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
54 },
55 nextWeek : function () {
56 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
57 },
58 lastDay : function () {
59 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
60 },
61 lastWeek : function () {
62 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
63 },
64 sameElse : 'L'
65 },
66 relativeTime : {
67 future : 'en %s',
68 past : 'hace %s',
69 s : 'unos 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, // Monday is the first day of the week.
85 doy : 4 // The week that contains Jan 4th is the first week of the year.
86 }
87 });
88
89 return esDo;
90
91 })));