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