1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| //! moment.js locale configuration
| //! locale : Spanish (United States) [es-us]
| //! author : bustta : https://github.com/bustta
|
| ;(function (global, factory) {
| typeof exports === 'object' && typeof module !== 'undefined'
| && typeof require === 'function' ? factory(require('../moment')) :
| typeof define === 'function' && define.amd ? define(['../moment'], factory) :
| factory(global.moment)
| }(this, (function (moment) { 'use strict';
|
|
| var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
| var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
|
| var esUs = moment.defineLocale('es-us', {
| months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
| monthsShort : function (m, format) {
| if (!m) {
| return monthsShortDot;
| } else if (/-MMM-/.test(format)) {
| return monthsShort[m.month()];
| } else {
| return monthsShortDot[m.month()];
| }
| },
| monthsParseExact : true,
| weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
| weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
| weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
| weekdaysParseExact : true,
| longDateFormat : {
| LT : 'h:mm A',
| LTS : 'h:mm:ss A',
| L : 'MM/DD/YYYY',
| LL : 'MMMM [de] D [de] YYYY',
| LLL : 'MMMM [de] D [de] YYYY h:mm A',
| LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
| },
| calendar : {
| sameDay : function () {
| return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
| },
| nextDay : function () {
| return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
| },
| nextWeek : function () {
| return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
| },
| lastDay : function () {
| return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
| },
| lastWeek : function () {
| return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
| },
| sameElse : 'L'
| },
| relativeTime : {
| future : 'en %s',
| past : 'hace %s',
| s : 'unos segundos',
| ss : '%d segundos',
| m : 'un minuto',
| mm : '%d minutos',
| h : 'una hora',
| hh : '%d horas',
| d : 'un día',
| dd : '%d días',
| M : 'un mes',
| MM : '%d meses',
| y : 'un año',
| yy : '%d años'
| },
| dayOfMonthOrdinalParse : /\d{1,2}º/,
| ordinal : '%dº',
| week : {
| dow : 0, // Sunday is the first day of the week.
| doy : 6 // The week that contains Jan 1st is the first week of the year.
| }
| });
|
| return esUs;
|
| })));
|
|