Debian Codegraph @

resources/lib/moment/locale/es-us.js

raw symbols SCIP
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) {
7 typeof exports === 'object' && typeof module !== 'undefined'
8 && typeof require === 'function' ? factory(require('../moment')) :
9 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 factory(global.moment)
11 }(this, (function (moment) { 'use strict';
12
13 //! moment.js locale configuration
14
15 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
16 '_'
17 ),
18 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
19 monthsParse = [
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 ],
33 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;
34
35 var esUs = moment.defineLocale('es-us', {
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: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
51 monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
52 monthsParse: monthsParse,
53 longMonthsParse: monthsParse,
54 shortMonthsParse: monthsParse,
55 weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
56 weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
57 weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
58 weekdaysParseExact: true,
59 longDateFormat: {
60 LT: 'h:mm A',
61 LTS: 'h:mm:ss A',
62 L: 'MM/DD/YYYY',
63 LL: 'D [de] MMMM [de] YYYY',
64 LLL: 'D [de] MMMM [de] YYYY h:mm A',
65 LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
66 },
67 calendar: {
68 sameDay: function () {
69 return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
70 },
71 nextDay: function () {
72 return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
73 },
74 nextWeek: function () {
75 return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
76 },
77 lastDay: function () {
78 return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
79 },
80 lastWeek: function () {
81 return (
82 '[el] dddd [pasado a la' +
83 (this.hours() !== 1 ? 's' : '') +
84 '] LT'
85 );
86 },
87 sameElse: 'L',
88 },
89 relativeTime: {
90 future: 'en %s',
91 past: 'hace %s',
92 s: 'unos segundos',
93 ss: '%d segundos',
94 m: 'un minuto',
95 mm: '%d minutos',
96 h: 'una hora',
97 hh: '%d horas',
98 d: 'un día',
99 dd: '%d días',
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: 0, // Sunday is the first day of the week.
109 doy: 6, // The week that contains Jan 6th is the first week of the year.
110 },
111 });
112
113 return esUs;
114
115 })));