UNPKG

4.2 kBJavaScriptView Raw
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 //! moment.js locale configuration
12
13 var monthsShortDot =
14 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
15 '_'
16 ),
17 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
18 monthsParse = [
19 /^ene/i,
20 /^feb/i,
21 /^mar/i,
22 /^abr/i,
23 /^may/i,
24 /^jun/i,
25 /^jul/i,
26 /^ago/i,
27 /^sep/i,
28 /^oct/i,
29 /^nov/i,
30 /^dic/i,
31 ],
32 monthsRegex =
33 /^(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;
34
35 var esDo = moment.defineLocale('es-do', {
36 months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
37 '_'
38 ),
39 monthsShort: function (m, format) {
40 if (!m) {
41 return monthsShortDot;
42 } else if (/-MMM-/.test(format)) {
43 return monthsShort[m.month()];
44 } else {
45 return monthsShortDot[m.month()];
46 }
47 },
48 monthsRegex: monthsRegex,
49 monthsShortRegex: monthsRegex,
50 monthsStrictRegex:
51 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
52 monthsShortStrictRegex:
53 /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
54 monthsParse: monthsParse,
55 longMonthsParse: monthsParse,
56 shortMonthsParse: monthsParse,
57 weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
58 weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
59 weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
60 weekdaysParseExact: true,
61 longDateFormat: {
62 LT: 'h:mm A',
63 LTS: 'h:mm:ss A',
64 L: 'DD/MM/YYYY',
65 LL: 'D [de] MMMM [de] YYYY',
66 LLL: 'D [de] MMMM [de] YYYY h:mm A',
67 LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
68 },
69 calendar: {
70 sameDay: function () {
71 return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
72 },
73 nextDay: function () {
74 return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
75 },
76 nextWeek: function () {
77 return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
78 },
79 lastDay: function () {
80 return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
81 },
82 lastWeek: function () {
83 return (
84 '[el] dddd [pasado a la' +
85 (this.hours() !== 1 ? 's' : '') +
86 '] LT'
87 );
88 },
89 sameElse: 'L',
90 },
91 relativeTime: {
92 future: 'en %s',
93 past: 'hace %s',
94 s: 'unos segundos',
95 ss: '%d segundos',
96 m: 'un minuto',
97 mm: '%d minutos',
98 h: 'una hora',
99 hh: '%d horas',
100 d: 'un día',
101 dd: '%d días',
102 w: 'una semana',
103 ww: '%d semanas',
104 M: 'un mes',
105 MM: '%d meses',
106 y: 'un año',
107 yy: '%d años',
108 },
109 dayOfMonthOrdinalParse: /\d{1,2}º/,
110 ordinal: '%dº',
111 week: {
112 dow: 1, // Monday is the first day of the week.
113 doy: 4, // The week that contains Jan 4th is the first week of the year.
114 },
115 });
116
117 return esDo;
118
119})));