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