momentjs-rails 2.29.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  18. data/vendor/assets/javascripts/moment/af.js +77 -66
  19. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  20. data/vendor/assets/javascripts/moment/ar-kw.js +60 -49
  21. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  22. data/vendor/assets/javascripts/moment/ar-ma.js +60 -49
  23. data/vendor/assets/javascripts/moment/ar-sa.js +109 -98
  24. data/vendor/assets/javascripts/moment/ar-tn.js +60 -49
  25. data/vendor/assets/javascripts/moment/ar.js +191 -180
  26. data/vendor/assets/javascripts/moment/az.js +106 -95
  27. data/vendor/assets/javascripts/moment/be.js +138 -127
  28. data/vendor/assets/javascripts/moment/bg.js +91 -80
  29. data/vendor/assets/javascripts/moment/bm.js +57 -47
  30. data/vendor/assets/javascripts/moment/bn-bd.js +131 -120
  31. data/vendor/assets/javascripts/moment/bn.js +123 -112
  32. data/vendor/assets/javascripts/moment/bo.js +127 -116
  33. data/vendor/assets/javascripts/moment/br.js +162 -151
  34. data/vendor/assets/javascripts/moment/bs.js +150 -139
  35. data/vendor/assets/javascripts/moment/ca.js +94 -83
  36. data/vendor/assets/javascripts/moment/cs.js +172 -161
  37. data/vendor/assets/javascripts/moment/cv.js +67 -56
  38. data/vendor/assets/javascripts/moment/cy.js +101 -90
  39. data/vendor/assets/javascripts/moment/da.js +59 -48
  40. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  41. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  42. data/vendor/assets/javascripts/moment/de.js +81 -70
  43. data/vendor/assets/javascripts/moment/dv.js +95 -84
  44. data/vendor/assets/javascripts/moment/el.js +107 -96
  45. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  46. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  47. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  48. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  50. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  51. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  53. data/vendor/assets/javascripts/moment/eo.js +71 -60
  54. data/vendor/assets/javascripts/moment/es-do.js +105 -94
  55. data/vendor/assets/javascripts/moment/es-mx.js +106 -95
  56. data/vendor/assets/javascripts/moment/es-us.js +105 -94
  57. data/vendor/assets/javascripts/moment/es.js +106 -95
  58. data/vendor/assets/javascripts/moment/et.js +81 -70
  59. data/vendor/assets/javascripts/moment/eu.js +69 -58
  60. data/vendor/assets/javascripts/moment/fa.js +115 -104
  61. data/vendor/assets/javascripts/moment/fi.js +125 -114
  62. data/vendor/assets/javascripts/moment/fil.js +63 -52
  63. data/vendor/assets/javascripts/moment/fo.js +61 -50
  64. data/vendor/assets/javascripts/moment/fr-ca.js +74 -63
  65. data/vendor/assets/javascripts/moment/fr-ch.js +78 -67
  66. data/vendor/assets/javascripts/moment/fr.js +107 -96
  67. data/vendor/assets/javascripts/moment/fy.js +81 -70
  68. data/vendor/assets/javascripts/moment/ga.js +100 -89
  69. data/vendor/assets/javascripts/moment/gd.js +100 -89
  70. data/vendor/assets/javascripts/moment/gl.js +76 -65
  71. data/vendor/assets/javascripts/moment/gom-deva.js +127 -116
  72. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  73. data/vendor/assets/javascripts/moment/gu.js +126 -115
  74. data/vendor/assets/javascripts/moment/he.js +93 -82
  75. data/vendor/assets/javascripts/moment/hi.js +161 -150
  76. data/vendor/assets/javascripts/moment/hr.js +152 -141
  77. data/vendor/assets/javascripts/moment/hu.js +119 -108
  78. data/vendor/assets/javascripts/moment/hy-am.js +94 -83
  79. data/vendor/assets/javascripts/moment/id.js +81 -70
  80. data/vendor/assets/javascripts/moment/is.js +137 -126
  81. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  82. data/vendor/assets/javascripts/moment/it.js +106 -95
  83. data/vendor/assets/javascripts/moment/ja.js +146 -135
  84. data/vendor/assets/javascripts/moment/jv.js +81 -70
  85. data/vendor/assets/javascripts/moment/ka.js +92 -81
  86. data/vendor/assets/javascripts/moment/kk.js +87 -76
  87. data/vendor/assets/javascripts/moment/km.js +107 -96
  88. data/vendor/assets/javascripts/moment/kn.js +128 -117
  89. data/vendor/assets/javascripts/moment/ko.js +80 -69
  90. data/vendor/assets/javascripts/moment/ku.js +123 -112
  91. data/vendor/assets/javascripts/moment/ky.js +89 -78
  92. data/vendor/assets/javascripts/moment/lb.js +132 -121
  93. data/vendor/assets/javascripts/moment/lo.js +71 -60
  94. data/vendor/assets/javascripts/moment/lt.js +125 -114
  95. data/vendor/assets/javascripts/moment/lv.js +96 -85
  96. data/vendor/assets/javascripts/moment/me.js +120 -109
  97. data/vendor/assets/javascripts/moment/mi.js +65 -54
  98. data/vendor/assets/javascripts/moment/mk.js +90 -78
  99. data/vendor/assets/javascripts/moment/ml.js +86 -75
  100. data/vendor/assets/javascripts/moment/mn.js +100 -89
  101. data/vendor/assets/javascripts/moment/mr.js +203 -192
  102. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  103. data/vendor/assets/javascripts/moment/ms.js +81 -70
  104. data/vendor/assets/javascripts/moment/mt.js +61 -50
  105. data/vendor/assets/javascripts/moment/my.js +93 -82
  106. data/vendor/assets/javascripts/moment/nb.js +65 -54
  107. data/vendor/assets/javascripts/moment/ne.js +125 -114
  108. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  109. data/vendor/assets/javascripts/moment/nl.js +105 -94
  110. data/vendor/assets/javascripts/moment/nn.js +65 -54
  111. data/vendor/assets/javascripts/moment/oc-lnc.js +85 -74
  112. data/vendor/assets/javascripts/moment/pa-in.js +126 -115
  113. data/vendor/assets/javascripts/moment/pl.js +137 -126
  114. data/vendor/assets/javascripts/moment/pt-br.js +62 -51
  115. data/vendor/assets/javascripts/moment/pt.js +67 -56
  116. data/vendor/assets/javascripts/moment/ro.js +77 -66
  117. data/vendor/assets/javascripts/moment/ru.js +197 -186
  118. data/vendor/assets/javascripts/moment/sd.js +86 -75
  119. data/vendor/assets/javascripts/moment/se.js +63 -52
  120. data/vendor/assets/javascripts/moment/si.js +74 -63
  121. data/vendor/assets/javascripts/moment/sk.js +145 -134
  122. data/vendor/assets/javascripts/moment/sl.js +171 -160
  123. data/vendor/assets/javascripts/moment/sq.js +69 -58
  124. data/vendor/assets/javascripts/moment/sr-cyrl.js +117 -106
  125. data/vendor/assets/javascripts/moment/sr.js +119 -108
  126. data/vendor/assets/javascripts/moment/ss.js +88 -77
  127. data/vendor/assets/javascripts/moment/sv.js +74 -63
  128. data/vendor/assets/javascripts/moment/sw.js +60 -49
  129. data/vendor/assets/javascripts/moment/ta.js +134 -123
  130. data/vendor/assets/javascripts/moment/te.js +92 -81
  131. data/vendor/assets/javascripts/moment/tet.js +72 -61
  132. data/vendor/assets/javascripts/moment/tg.js +119 -108
  133. data/vendor/assets/javascripts/moment/th.js +70 -59
  134. data/vendor/assets/javascripts/moment/tk.js +96 -85
  135. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  136. data/vendor/assets/javascripts/moment/tlh.js +123 -112
  137. data/vendor/assets/javascripts/moment/tr.js +110 -99
  138. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  139. data/vendor/assets/javascripts/moment/tzm-latn.js +59 -48
  140. data/vendor/assets/javascripts/moment/tzm.js +59 -48
  141. data/vendor/assets/javascripts/moment/ug-cn.js +115 -104
  142. data/vendor/assets/javascripts/moment/uk.js +158 -147
  143. data/vendor/assets/javascripts/moment/ur.js +86 -75
  144. data/vendor/assets/javascripts/moment/uz-latn.js +59 -48
  145. data/vendor/assets/javascripts/moment/uz.js +57 -46
  146. data/vendor/assets/javascripts/moment/vi.js +84 -73
  147. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  148. data/vendor/assets/javascripts/moment/yo.js +59 -48
  149. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  150. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  151. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  153. data/vendor/assets/javascripts/moment.js +4961 -4953
  154. metadata +30 -2
@@ -5,64 +5,75 @@
5
5
  //! comment : miestasmia corrected the translation by colindean
6
6
  //! comment : Vivakvo corrected the translation by colindean and miestasmia
7
7
 
8
- import moment from '../moment';
8
+ ;(function (global, factory) {
9
+ typeof exports === 'object' && typeof module !== 'undefined'
10
+ && typeof require === 'function' ? factory(require('../moment')) :
11
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
12
+ factory(global.moment)
13
+ }(this, (function (moment) { 'use strict';
9
14
 
10
- export default moment.defineLocale('eo', {
11
- months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
12
- '_'
13
- ),
14
- monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
15
- weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
16
- weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
17
- weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
18
- longDateFormat: {
19
- LT: 'HH:mm',
20
- LTS: 'HH:mm:ss',
21
- L: 'YYYY-MM-DD',
22
- LL: '[la] D[-an de] MMMM, YYYY',
23
- LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
24
- LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
25
- llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
26
- },
27
- meridiemParse: /[ap]\.t\.m/i,
28
- isPM: function (input) {
29
- return input.charAt(0).toLowerCase() === 'p';
30
- },
31
- meridiem: function (hours, minutes, isLower) {
32
- if (hours > 11) {
33
- return isLower ? 'p.t.m.' : 'P.T.M.';
34
- } else {
35
- return isLower ? 'a.t.m.' : 'A.T.M.';
36
- }
37
- },
38
- calendar: {
39
- sameDay: '[Hodiaŭ je] LT',
40
- nextDay: '[Morgaŭ je] LT',
41
- nextWeek: 'dddd[n je] LT',
42
- lastDay: '[Hieraŭ je] LT',
43
- lastWeek: '[pasintan] dddd[n je] LT',
44
- sameElse: 'L',
45
- },
46
- relativeTime: {
47
- future: 'post %s',
48
- past: 'antaŭ %s',
49
- s: 'kelkaj sekundoj',
50
- ss: '%d sekundoj',
51
- m: 'unu minuto',
52
- mm: '%d minutoj',
53
- h: 'unu horo',
54
- hh: '%d horoj',
55
- d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
56
- dd: '%d tagoj',
57
- M: 'unu monato',
58
- MM: '%d monatoj',
59
- y: 'unu jaro',
60
- yy: '%d jaroj',
61
- },
62
- dayOfMonthOrdinalParse: /\d{1,2}a/,
63
- ordinal: '%da',
64
- week: {
65
- dow: 1, // Monday is the first day of the week.
66
- doy: 7, // The week that contains Jan 7th is the first week of the year.
67
- },
68
- });
15
+ //! moment.js locale configuration
16
+
17
+ var eo = moment.defineLocale('eo', {
18
+ months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
19
+ '_'
20
+ ),
21
+ monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
22
+ weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
23
+ weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
24
+ weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'YYYY-MM-DD',
29
+ LL: '[la] D[-an de] MMMM, YYYY',
30
+ LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
31
+ LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
32
+ llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
33
+ },
34
+ meridiemParse: /[ap]\.t\.m/i,
35
+ isPM: function (input) {
36
+ return input.charAt(0).toLowerCase() === 'p';
37
+ },
38
+ meridiem: function (hours, minutes, isLower) {
39
+ if (hours > 11) {
40
+ return isLower ? 'p.t.m.' : 'P.T.M.';
41
+ } else {
42
+ return isLower ? 'a.t.m.' : 'A.T.M.';
43
+ }
44
+ },
45
+ calendar: {
46
+ sameDay: '[Hodiaŭ je] LT',
47
+ nextDay: '[Morgaŭ je] LT',
48
+ nextWeek: 'dddd[n je] LT',
49
+ lastDay: '[Hieraŭ je] LT',
50
+ lastWeek: '[pasintan] dddd[n je] LT',
51
+ sameElse: 'L',
52
+ },
53
+ relativeTime: {
54
+ future: 'post %s',
55
+ past: 'antaŭ %s',
56
+ s: 'kelkaj sekundoj',
57
+ ss: '%d sekundoj',
58
+ m: 'unu minuto',
59
+ mm: '%d minutoj',
60
+ h: 'unu horo',
61
+ hh: '%d horoj',
62
+ d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
63
+ dd: '%d tagoj',
64
+ M: 'unu monato',
65
+ MM: '%d monatoj',
66
+ y: 'unu jaro',
67
+ yy: '%d jaroj',
68
+ },
69
+ dayOfMonthOrdinalParse: /\d{1,2}a/,
70
+ ordinal: '%da',
71
+ week: {
72
+ dow: 1, // Monday is the first day of the week.
73
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
74
+ },
75
+ });
76
+
77
+ return eo;
78
+
79
+ })));
@@ -1,104 +1,115 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Spanish (Dominican Republic) [es-do]
3
3
 
4
- import moment from '../moment';
4
+ ;(function (global, factory) {
5
+ typeof exports === 'object' && typeof module !== 'undefined'
6
+ && typeof require === 'function' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, (function (moment) { 'use strict';
5
10
 
6
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
7
- '_'
8
- ),
9
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
10
- monthsParse = [
11
- /^ene/i,
12
- /^feb/i,
13
- /^mar/i,
14
- /^abr/i,
15
- /^may/i,
16
- /^jun/i,
17
- /^jul/i,
18
- /^ago/i,
19
- /^sep/i,
20
- /^oct/i,
21
- /^nov/i,
22
- /^dic/i,
23
- ],
24
- 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;
11
+ //! moment.js locale configuration
25
12
 
26
- export default moment.defineLocale('es-do', {
27
- months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
28
- '_'
29
- ),
30
- monthsShort: function (m, format) {
31
- if (!m) {
32
- return monthsShortDot;
33
- } else if (/-MMM-/.test(format)) {
34
- return monthsShort[m.month()];
35
- } else {
36
- return monthsShortDot[m.month()];
37
- }
38
- },
39
- monthsRegex: monthsRegex,
40
- monthsShortRegex: monthsRegex,
41
- monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
42
- monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
43
- monthsParse: monthsParse,
44
- longMonthsParse: monthsParse,
45
- shortMonthsParse: monthsParse,
46
- weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
47
- weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
48
- weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
49
- weekdaysParseExact: true,
50
- longDateFormat: {
51
- LT: 'h:mm A',
52
- LTS: 'h:mm:ss A',
53
- L: 'DD/MM/YYYY',
54
- LL: 'D [de] MMMM [de] YYYY',
55
- LLL: 'D [de] MMMM [de] YYYY h:mm A',
56
- LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
57
- },
58
- calendar: {
59
- sameDay: function () {
60
- return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
13
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
14
+ '_'
15
+ ),
16
+ monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
17
+ monthsParse = [
18
+ /^ene/i,
19
+ /^feb/i,
20
+ /^mar/i,
21
+ /^abr/i,
22
+ /^may/i,
23
+ /^jun/i,
24
+ /^jul/i,
25
+ /^ago/i,
26
+ /^sep/i,
27
+ /^oct/i,
28
+ /^nov/i,
29
+ /^dic/i,
30
+ ],
31
+ 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;
32
+
33
+ var esDo = moment.defineLocale('es-do', {
34
+ months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
35
+ '_'
36
+ ),
37
+ monthsShort: function (m, format) {
38
+ if (!m) {
39
+ return monthsShortDot;
40
+ } else if (/-MMM-/.test(format)) {
41
+ return monthsShort[m.month()];
42
+ } else {
43
+ return monthsShortDot[m.month()];
44
+ }
61
45
  },
62
- nextDay: function () {
63
- return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
46
+ monthsRegex: monthsRegex,
47
+ monthsShortRegex: monthsRegex,
48
+ monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
49
+ monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
50
+ monthsParse: monthsParse,
51
+ longMonthsParse: monthsParse,
52
+ shortMonthsParse: monthsParse,
53
+ weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
54
+ weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
55
+ weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
56
+ weekdaysParseExact: true,
57
+ longDateFormat: {
58
+ LT: 'h:mm A',
59
+ LTS: 'h:mm:ss A',
60
+ L: 'DD/MM/YYYY',
61
+ LL: 'D [de] MMMM [de] YYYY',
62
+ LLL: 'D [de] MMMM [de] YYYY h:mm A',
63
+ LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
64
64
  },
65
- nextWeek: function () {
66
- return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
65
+ calendar: {
66
+ sameDay: function () {
67
+ return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
68
+ },
69
+ nextDay: function () {
70
+ return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
71
+ },
72
+ nextWeek: function () {
73
+ return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
74
+ },
75
+ lastDay: function () {
76
+ return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
77
+ },
78
+ lastWeek: function () {
79
+ return (
80
+ '[el] dddd [pasado a la' +
81
+ (this.hours() !== 1 ? 's' : '') +
82
+ '] LT'
83
+ );
84
+ },
85
+ sameElse: 'L',
67
86
  },
68
- lastDay: function () {
69
- return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
87
+ relativeTime: {
88
+ future: 'en %s',
89
+ past: 'hace %s',
90
+ s: 'unos segundos',
91
+ ss: '%d segundos',
92
+ m: 'un minuto',
93
+ mm: '%d minutos',
94
+ h: 'una hora',
95
+ hh: '%d horas',
96
+ d: 'un día',
97
+ dd: '%d días',
98
+ w: 'una semana',
99
+ ww: '%d semanas',
100
+ M: 'un mes',
101
+ MM: '%d meses',
102
+ y: 'un año',
103
+ yy: '%d años',
70
104
  },
71
- lastWeek: function () {
72
- return (
73
- '[el] dddd [pasado a la' +
74
- (this.hours() !== 1 ? 's' : '') +
75
- '] LT'
76
- );
105
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
106
+ ordinal: '%dº',
107
+ week: {
108
+ dow: 1, // Monday is the first day of the week.
109
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
77
110
  },
78
- sameElse: 'L',
79
- },
80
- relativeTime: {
81
- future: 'en %s',
82
- past: 'hace %s',
83
- s: 'unos segundos',
84
- ss: '%d segundos',
85
- m: 'un minuto',
86
- mm: '%d minutos',
87
- h: 'una hora',
88
- hh: '%d horas',
89
- d: 'un día',
90
- dd: '%d días',
91
- w: 'una semana',
92
- ww: '%d semanas',
93
- M: 'un mes',
94
- MM: '%d meses',
95
- y: 'un año',
96
- yy: '%d años',
97
- },
98
- dayOfMonthOrdinalParse: /\d{1,2}º/,
99
- ordinal: '%dº',
100
- week: {
101
- dow: 1, // Monday is the first day of the week.
102
- doy: 4, // The week that contains Jan 4th is the first week of the year.
103
- },
104
- });
111
+ });
112
+
113
+ return esDo;
114
+
115
+ })));
@@ -2,105 +2,116 @@
2
2
  //! locale : Spanish (Mexico) [es-mx]
3
3
  //! author : JC Franco : https://github.com/jcfranco
4
4
 
5
- import moment from '../moment';
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
6
11
 
7
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
8
- '_'
9
- ),
10
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
11
- monthsParse = [
12
- /^ene/i,
13
- /^feb/i,
14
- /^mar/i,
15
- /^abr/i,
16
- /^may/i,
17
- /^jun/i,
18
- /^jul/i,
19
- /^ago/i,
20
- /^sep/i,
21
- /^oct/i,
22
- /^nov/i,
23
- /^dic/i,
24
- ],
25
- 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;
12
+ //! moment.js locale configuration
26
13
 
27
- export default moment.defineLocale('es-mx', {
28
- months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
29
- '_'
30
- ),
31
- monthsShort: function (m, format) {
32
- if (!m) {
33
- return monthsShortDot;
34
- } else if (/-MMM-/.test(format)) {
35
- return monthsShort[m.month()];
36
- } else {
37
- return monthsShortDot[m.month()];
38
- }
39
- },
40
- monthsRegex: monthsRegex,
41
- monthsShortRegex: monthsRegex,
42
- monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
43
- monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
44
- monthsParse: monthsParse,
45
- longMonthsParse: monthsParse,
46
- shortMonthsParse: monthsParse,
47
- weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
48
- weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
49
- weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
50
- weekdaysParseExact: true,
51
- longDateFormat: {
52
- LT: 'H:mm',
53
- LTS: 'H:mm:ss',
54
- L: 'DD/MM/YYYY',
55
- LL: 'D [de] MMMM [de] YYYY',
56
- LLL: 'D [de] MMMM [de] YYYY H:mm',
57
- LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
58
- },
59
- calendar: {
60
- sameDay: function () {
61
- return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
14
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
15
+ '_'
16
+ ),
17
+ monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
18
+ monthsParse = [
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
+ ],
32
+ 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;
33
+
34
+ var esMx = moment.defineLocale('es-mx', {
35
+ months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
36
+ '_'
37
+ ),
38
+ monthsShort: function (m, format) {
39
+ if (!m) {
40
+ return monthsShortDot;
41
+ } else if (/-MMM-/.test(format)) {
42
+ return monthsShort[m.month()];
43
+ } else {
44
+ return monthsShortDot[m.month()];
45
+ }
62
46
  },
63
- nextDay: function () {
64
- return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
47
+ monthsRegex: monthsRegex,
48
+ monthsShortRegex: monthsRegex,
49
+ monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
50
+ monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
51
+ monthsParse: monthsParse,
52
+ longMonthsParse: monthsParse,
53
+ shortMonthsParse: monthsParse,
54
+ weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
55
+ weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
56
+ weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
57
+ weekdaysParseExact: true,
58
+ longDateFormat: {
59
+ LT: 'H:mm',
60
+ LTS: 'H:mm:ss',
61
+ L: 'DD/MM/YYYY',
62
+ LL: 'D [de] MMMM [de] YYYY',
63
+ LLL: 'D [de] MMMM [de] YYYY H:mm',
64
+ LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
65
65
  },
66
- nextWeek: function () {
67
- return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
66
+ calendar: {
67
+ sameDay: function () {
68
+ return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
69
+ },
70
+ nextDay: function () {
71
+ return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
72
+ },
73
+ nextWeek: function () {
74
+ return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
75
+ },
76
+ lastDay: function () {
77
+ return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
78
+ },
79
+ lastWeek: function () {
80
+ return (
81
+ '[el] dddd [pasado a la' +
82
+ (this.hours() !== 1 ? 's' : '') +
83
+ '] LT'
84
+ );
85
+ },
86
+ sameElse: 'L',
68
87
  },
69
- lastDay: function () {
70
- return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
88
+ relativeTime: {
89
+ future: 'en %s',
90
+ past: 'hace %s',
91
+ s: 'unos segundos',
92
+ ss: '%d segundos',
93
+ m: 'un minuto',
94
+ mm: '%d minutos',
95
+ h: 'una hora',
96
+ hh: '%d horas',
97
+ d: 'un día',
98
+ dd: '%d días',
99
+ w: 'una semana',
100
+ ww: '%d semanas',
101
+ M: 'un mes',
102
+ MM: '%d meses',
103
+ y: 'un año',
104
+ yy: '%d años',
71
105
  },
72
- lastWeek: function () {
73
- return (
74
- '[el] dddd [pasado a la' +
75
- (this.hours() !== 1 ? 's' : '') +
76
- '] LT'
77
- );
106
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
107
+ ordinal: '%dº',
108
+ week: {
109
+ dow: 0, // Sunday is the first day of the week.
110
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
78
111
  },
79
- sameElse: 'L',
80
- },
81
- relativeTime: {
82
- future: 'en %s',
83
- past: 'hace %s',
84
- s: 'unos segundos',
85
- ss: '%d segundos',
86
- m: 'un minuto',
87
- mm: '%d minutos',
88
- h: 'una hora',
89
- hh: '%d horas',
90
- d: 'un día',
91
- dd: '%d días',
92
- w: 'una semana',
93
- ww: '%d semanas',
94
- M: 'un mes',
95
- MM: '%d meses',
96
- y: 'un año',
97
- yy: '%d años',
98
- },
99
- dayOfMonthOrdinalParse: /\d{1,2}º/,
100
- ordinal: '%dº',
101
- week: {
102
- dow: 0, // Sunday is the first day of the week.
103
- doy: 4, // The week that contains Jan 4th is the first week of the year.
104
- },
105
- invalidDate: 'Fecha inválida',
106
- });
112
+ invalidDate: 'Fecha inválida',
113
+ });
114
+
115
+ return esMx;
116
+
117
+ })));