UNPKG

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