momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -7,61 +7,61 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var en_nz = moment.defineLocale('en-nz', {
14
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
16
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
17
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
18
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
19
- longDateFormat : {
20
- LT : 'h:mm A',
21
- LTS : 'h:mm:ss A',
22
- L : 'DD/MM/YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY h:mm A',
25
- LLLL : 'dddd, D MMMM YYYY h:mm A'
26
- },
27
- calendar : {
28
- sameDay : '[Today at] LT',
29
- nextDay : '[Tomorrow at] LT',
30
- nextWeek : 'dddd [at] LT',
31
- lastDay : '[Yesterday at] LT',
32
- lastWeek : '[Last] dddd [at] LT',
33
- sameElse : 'L'
34
- },
35
- relativeTime : {
36
- future : 'in %s',
37
- past : '%s ago',
38
- s : 'a few seconds',
39
- m : 'a minute',
40
- mm : '%d minutes',
41
- h : 'an hour',
42
- hh : '%d hours',
43
- d : 'a day',
44
- dd : '%d days',
45
- M : 'a month',
46
- MM : '%d months',
47
- y : 'a year',
48
- yy : '%d years'
49
- },
50
- ordinalParse: /\d{1,2}(st|nd|rd|th)/,
51
- ordinal : function (number) {
52
- var b = number % 10,
53
- output = (~~(number % 100 / 10) === 1) ? 'th' :
54
- (b === 1) ? 'st' :
55
- (b === 2) ? 'nd' :
56
- (b === 3) ? 'rd' : 'th';
57
- return number + output;
58
- },
59
- week : {
60
- dow : 1, // Monday is the first day of the week.
61
- doy : 4 // The week that contains Jan 4th is the first week of the year.
62
- }
63
- });
13
+ var enNz = moment.defineLocale('en-nz', {
14
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
16
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
17
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
18
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'h:mm A',
21
+ LTS : 'h:mm:ss A',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY h:mm A',
25
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
26
+ },
27
+ calendar : {
28
+ sameDay : '[Today at] LT',
29
+ nextDay : '[Tomorrow at] LT',
30
+ nextWeek : 'dddd [at] LT',
31
+ lastDay : '[Yesterday at] LT',
32
+ lastWeek : '[Last] dddd [at] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : 'in %s',
37
+ past : '%s ago',
38
+ s : 'a few seconds',
39
+ m : 'a minute',
40
+ mm : '%d minutes',
41
+ h : 'an hour',
42
+ hh : '%d hours',
43
+ d : 'a day',
44
+ dd : '%d days',
45
+ M : 'a month',
46
+ MM : '%d months',
47
+ y : 'a year',
48
+ yy : '%d years'
49
+ },
50
+ ordinalParse: /\d{1,2}(st|nd|rd|th)/,
51
+ ordinal : function (number) {
52
+ var b = number % 10,
53
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
54
+ (b === 1) ? 'st' :
55
+ (b === 2) ? 'nd' :
56
+ (b === 3) ? 'rd' : 'th';
57
+ return number + output;
58
+ },
59
+ week : {
60
+ dow : 1, // Monday is the first day of the week.
61
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
62
+ }
63
+ });
64
64
 
65
- return en_nz;
65
+ return enNz;
66
66
 
67
- }));
67
+ })));
@@ -9,65 +9,65 @@
9
9
  && typeof require === 'function' ? factory(require('../moment')) :
10
10
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
11
  factory(global.moment)
12
- }(this, function (moment) { 'use strict';
12
+ }(this, (function (moment) { 'use strict';
13
13
 
14
14
 
15
- var eo = moment.defineLocale('eo', {
16
- months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
17
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
18
- weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
19
- weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
20
- weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
21
- longDateFormat : {
22
- LT : 'HH:mm',
23
- LTS : 'HH:mm:ss',
24
- L : 'YYYY-MM-DD',
25
- LL : 'D[-an de] MMMM, YYYY',
26
- LLL : 'D[-an de] MMMM, YYYY HH:mm',
27
- LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
28
- },
29
- meridiemParse: /[ap]\.t\.m/i,
30
- isPM: function (input) {
31
- return input.charAt(0).toLowerCase() === 'p';
32
- },
33
- meridiem : function (hours, minutes, isLower) {
34
- if (hours > 11) {
35
- return isLower ? 'p.t.m.' : 'P.T.M.';
36
- } else {
37
- return isLower ? 'a.t.m.' : 'A.T.M.';
38
- }
39
- },
40
- calendar : {
41
- sameDay : '[Hodiaŭ je] LT',
42
- nextDay : '[Morgaŭ je] LT',
43
- nextWeek : 'dddd [je] LT',
44
- lastDay : '[Hieraŭ je] LT',
45
- lastWeek : '[pasinta] dddd [je] LT',
46
- sameElse : 'L'
47
- },
48
- relativeTime : {
49
- future : 'je %s',
50
- past : 'antaŭ %s',
51
- s : 'sekundoj',
52
- m : 'minuto',
53
- mm : '%d minutoj',
54
- h : 'horo',
55
- hh : '%d horoj',
56
- d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
57
- dd : '%d tagoj',
58
- M : 'monato',
59
- MM : '%d monatoj',
60
- y : 'jaro',
61
- yy : '%d jaroj'
62
- },
63
- ordinalParse: /\d{1,2}a/,
64
- ordinal : '%da',
65
- week : {
66
- dow : 1, // Monday is the first day of the week.
67
- doy : 7 // The week that contains Jan 1st is the first week of the year.
15
+ var eo = moment.defineLocale('eo', {
16
+ months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
17
+ monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
18
+ weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
19
+ weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
20
+ weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
21
+ longDateFormat : {
22
+ LT : 'HH:mm',
23
+ LTS : 'HH:mm:ss',
24
+ L : 'YYYY-MM-DD',
25
+ LL : 'D[-an de] MMMM, YYYY',
26
+ LLL : 'D[-an de] MMMM, YYYY HH:mm',
27
+ LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
28
+ },
29
+ meridiemParse: /[ap]\.t\.m/i,
30
+ isPM: function (input) {
31
+ return input.charAt(0).toLowerCase() === 'p';
32
+ },
33
+ meridiem : function (hours, minutes, isLower) {
34
+ if (hours > 11) {
35
+ return isLower ? 'p.t.m.' : 'P.T.M.';
36
+ } else {
37
+ return isLower ? 'a.t.m.' : 'A.T.M.';
68
38
  }
69
- });
39
+ },
40
+ calendar : {
41
+ sameDay : '[Hodiaŭ je] LT',
42
+ nextDay : '[Morgaŭ je] LT',
43
+ nextWeek : 'dddd [je] LT',
44
+ lastDay : '[Hieraŭ je] LT',
45
+ lastWeek : '[pasinta] dddd [je] LT',
46
+ sameElse : 'L'
47
+ },
48
+ relativeTime : {
49
+ future : 'je %s',
50
+ past : 'antaŭ %s',
51
+ s : 'sekundoj',
52
+ m : 'minuto',
53
+ mm : '%d minutoj',
54
+ h : 'horo',
55
+ hh : '%d horoj',
56
+ d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
57
+ dd : '%d tagoj',
58
+ M : 'monato',
59
+ MM : '%d monatoj',
60
+ y : 'jaro',
61
+ yy : '%d jaroj'
62
+ },
63
+ ordinalParse: /\d{1,2}a/,
64
+ ordinal : '%da',
65
+ week : {
66
+ dow : 1, // Monday is the first day of the week.
67
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
68
+ }
69
+ });
70
70
 
71
- return eo;
71
+ return eo;
72
72
 
73
- }));
73
+ })));
@@ -6,75 +6,75 @@
6
6
  && typeof require === 'function' ? factory(require('../moment')) :
7
7
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
8
8
  factory(global.moment)
9
- }(this, function (moment) { 'use strict';
9
+ }(this, (function (moment) { 'use strict';
10
10
 
11
11
 
12
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
13
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
12
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
13
+ var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
14
14
 
15
- var es_do = moment.defineLocale('es-do', {
16
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
17
- monthsShort : function (m, format) {
18
- if (/-MMM-/.test(format)) {
19
- return monthsShort[m.month()];
20
- } else {
21
- return monthsShortDot[m.month()];
22
- }
15
+ var esDo = moment.defineLocale('es-do', {
16
+ months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
17
+ monthsShort : function (m, format) {
18
+ if (/-MMM-/.test(format)) {
19
+ return monthsShort[m.month()];
20
+ } else {
21
+ return monthsShortDot[m.month()];
22
+ }
23
+ },
24
+ monthsParseExact : true,
25
+ weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
26
+ weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
27
+ weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
28
+ weekdaysParseExact : true,
29
+ longDateFormat : {
30
+ LT : 'h:mm A',
31
+ LTS : 'h:mm:ss A',
32
+ L : 'DD/MM/YYYY',
33
+ LL : 'D [de] MMMM [de] YYYY',
34
+ LLL : 'D [de] MMMM [de] YYYY h:mm A',
35
+ LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
36
+ },
37
+ calendar : {
38
+ sameDay : function () {
39
+ return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
23
40
  },
24
- monthsParseExact : true,
25
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
26
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
27
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
28
- weekdaysParseExact : true,
29
- longDateFormat : {
30
- LT : 'h:mm A',
31
- LTS : 'h:mm:ss A',
32
- L : 'DD/MM/YYYY',
33
- LL : 'D [de] MMMM [de] YYYY',
34
- LLL : 'D [de] MMMM [de] YYYY h:mm A',
35
- LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
41
+ nextDay : function () {
42
+ return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
36
43
  },
37
- calendar : {
38
- sameDay : function () {
39
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
40
- },
41
- nextDay : function () {
42
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
43
- },
44
- nextWeek : function () {
45
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
46
- },
47
- lastDay : function () {
48
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
49
- },
50
- lastWeek : function () {
51
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
52
- },
53
- sameElse : 'L'
44
+ nextWeek : function () {
45
+ return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
54
46
  },
55
- relativeTime : {
56
- future : 'en %s',
57
- past : 'hace %s',
58
- s : 'unos segundos',
59
- m : 'un minuto',
60
- mm : '%d minutos',
61
- h : 'una hora',
62
- hh : '%d horas',
63
- d : 'un día',
64
- dd : '%d días',
65
- M : 'un mes',
66
- MM : '%d meses',
67
- y : 'un año',
68
- yy : '%d años'
47
+ lastDay : function () {
48
+ return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
69
49
  },
70
- ordinalParse : /\d{1,2}º/,
71
- ordinal : '%dº',
72
- week : {
73
- dow : 1, // Monday is the first day of the week.
74
- doy : 4 // The week that contains Jan 4th is the first week of the year.
75
- }
76
- });
50
+ lastWeek : function () {
51
+ return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
52
+ },
53
+ sameElse : 'L'
54
+ },
55
+ relativeTime : {
56
+ future : 'en %s',
57
+ past : 'hace %s',
58
+ s : 'unos segundos',
59
+ m : 'un minuto',
60
+ mm : '%d minutos',
61
+ h : 'una hora',
62
+ hh : '%d horas',
63
+ d : 'un día',
64
+ dd : '%d días',
65
+ M : 'un mes',
66
+ MM : '%d meses',
67
+ y : 'un año',
68
+ yy : '%d años'
69
+ },
70
+ ordinalParse : /\d{1,2}º/,
71
+ ordinal : '%dº',
72
+ week : {
73
+ dow : 1, // Monday is the first day of the week.
74
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
75
+ }
76
+ });
77
77
 
78
- return es_do;
78
+ return esDo;
79
79
 
80
- }));
80
+ })));
@@ -7,75 +7,75 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
14
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
13
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
14
+ var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
15
15
 
16
- var es = moment.defineLocale('es', {
17
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
18
- monthsShort : function (m, format) {
19
- if (/-MMM-/.test(format)) {
20
- return monthsShort[m.month()];
21
- } else {
22
- return monthsShortDot[m.month()];
23
- }
16
+ var es = moment.defineLocale('es', {
17
+ months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
18
+ monthsShort : function (m, format) {
19
+ if (/-MMM-/.test(format)) {
20
+ return monthsShort[m.month()];
21
+ } else {
22
+ return monthsShortDot[m.month()];
23
+ }
24
+ },
25
+ monthsParseExact : true,
26
+ weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
27
+ weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
28
+ weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
29
+ weekdaysParseExact : true,
30
+ longDateFormat : {
31
+ LT : 'H:mm',
32
+ LTS : 'H:mm:ss',
33
+ L : 'DD/MM/YYYY',
34
+ LL : 'D [de] MMMM [de] YYYY',
35
+ LLL : 'D [de] MMMM [de] YYYY H:mm',
36
+ LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
37
+ },
38
+ calendar : {
39
+ sameDay : function () {
40
+ return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
24
41
  },
25
- monthsParseExact : true,
26
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
27
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
28
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
29
- weekdaysParseExact : true,
30
- longDateFormat : {
31
- LT : 'H:mm',
32
- LTS : 'H:mm:ss',
33
- L : 'DD/MM/YYYY',
34
- LL : 'D [de] MMMM [de] YYYY',
35
- LLL : 'D [de] MMMM [de] YYYY H:mm',
36
- LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
42
+ nextDay : function () {
43
+ return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
37
44
  },
38
- calendar : {
39
- sameDay : function () {
40
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
41
- },
42
- nextDay : function () {
43
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
44
- },
45
- nextWeek : function () {
46
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
47
- },
48
- lastDay : function () {
49
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
50
- },
51
- lastWeek : function () {
52
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
53
- },
54
- sameElse : 'L'
45
+ nextWeek : function () {
46
+ return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
55
47
  },
56
- relativeTime : {
57
- future : 'en %s',
58
- past : 'hace %s',
59
- s : 'unos segundos',
60
- m : 'un minuto',
61
- mm : '%d minutos',
62
- h : 'una hora',
63
- hh : '%d horas',
64
- d : 'un día',
65
- dd : '%d días',
66
- M : 'un mes',
67
- MM : '%d meses',
68
- y : 'un año',
69
- yy : '%d años'
48
+ lastDay : function () {
49
+ return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
70
50
  },
71
- ordinalParse : /\d{1,2}º/,
72
- ordinal : '%dº',
73
- week : {
74
- dow : 1, // Monday is the first day of the week.
75
- doy : 4 // The week that contains Jan 4th is the first week of the year.
76
- }
77
- });
51
+ lastWeek : function () {
52
+ return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
53
+ },
54
+ sameElse : 'L'
55
+ },
56
+ relativeTime : {
57
+ future : 'en %s',
58
+ past : 'hace %s',
59
+ s : 'unos segundos',
60
+ m : 'un minuto',
61
+ mm : '%d minutos',
62
+ h : 'una hora',
63
+ hh : '%d horas',
64
+ d : 'un día',
65
+ dd : '%d días',
66
+ M : 'un mes',
67
+ MM : '%d meses',
68
+ y : 'un año',
69
+ yy : '%d años'
70
+ },
71
+ ordinalParse : /\d{1,2}º/,
72
+ ordinal : '%dº',
73
+ week : {
74
+ dow : 1, // Monday is the first day of the week.
75
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
76
+ }
77
+ });
78
78
 
79
- return es;
79
+ return es;
80
80
 
81
- }));
81
+ })));