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