momentjs-rails 2.20.1 → 2.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/app/assets/config/manifest.js +1 -0
  5. data/test/dummy/config/environments/development.rb +2 -0
  6. data/test/dummy/config/environments/production.rb +1 -0
  7. data/test/dummy/config/environments/test.rb +2 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
  36. data/test/integration/navigation_test.rb +1 -1
  37. data/vendor/assets/javascripts/moment/af.js +51 -54
  38. data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
  39. data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
  40. data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
  41. data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
  42. data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
  43. data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
  44. data/vendor/assets/javascripts/moment/ar.js +158 -112
  45. data/vendor/assets/javascripts/moment/az.js +52 -57
  46. data/vendor/assets/javascripts/moment/be.js +69 -63
  47. data/vendor/assets/javascripts/moment/bg.js +49 -53
  48. data/vendor/assets/javascripts/moment/bm.js +43 -51
  49. data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
  50. data/vendor/assets/javascripts/moment/bn.js +76 -78
  51. data/vendor/assets/javascripts/moment/bo.js +80 -78
  52. data/vendor/assets/javascripts/moment/br.js +115 -59
  53. data/vendor/assets/javascripts/moment/bs.js +48 -52
  54. data/vendor/assets/javascripts/moment/ca.js +76 -68
  55. data/vendor/assets/javascripts/moment/cs.js +80 -89
  56. data/vendor/assets/javascripts/moment/cv.js +45 -47
  57. data/vendor/assets/javascripts/moment/cy.js +41 -26
  58. data/vendor/assets/javascripts/moment/da.js +43 -51
  59. data/vendor/assets/javascripts/moment/de-at.js +53 -54
  60. data/vendor/assets/javascripts/moment/de-ch.js +54 -55
  61. data/vendor/assets/javascripts/moment/de.js +53 -54
  62. data/vendor/assets/javascripts/moment/dv.js +64 -75
  63. data/vendor/assets/javascripts/moment/el.js +63 -60
  64. data/vendor/assets/javascripts/moment/en-au.js +55 -55
  65. data/vendor/assets/javascripts/moment/en-ca.js +52 -52
  66. data/vendor/assets/javascripts/moment/en-gb.js +55 -55
  67. data/vendor/assets/javascripts/moment/en-ie.js +55 -55
  68. data/vendor/assets/javascripts/moment/en-il.js +64 -0
  69. data/vendor/assets/javascripts/moment/en-in.js +68 -0
  70. data/vendor/assets/javascripts/moment/en-nz.js +55 -55
  71. data/vendor/assets/javascripts/moment/en-sg.js +68 -0
  72. data/vendor/assets/javascripts/moment/eo.js +46 -52
  73. data/vendor/assets/javascripts/moment/es-do.js +75 -63
  74. data/vendor/assets/javascripts/moment/es-mx.js +106 -0
  75. data/vendor/assets/javascripts/moment/es-us.js +83 -61
  76. data/vendor/assets/javascripts/moment/es.js +83 -70
  77. data/vendor/assets/javascripts/moment/et.js +58 -62
  78. data/vendor/assets/javascripts/moment/eu.js +53 -57
  79. data/vendor/assets/javascripts/moment/fa.js +84 -82
  80. data/vendor/assets/javascripts/moment/fi.js +72 -61
  81. data/vendor/assets/javascripts/moment/fil.js +58 -0
  82. data/vendor/assets/javascripts/moment/fo.js +46 -51
  83. data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
  84. data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
  85. data/vendor/assets/javascripts/moment/fr.js +72 -52
  86. data/vendor/assets/javascripts/moment/fy.js +52 -51
  87. data/vendor/assets/javascripts/moment/ga.js +95 -0
  88. data/vendor/assets/javascripts/moment/gd.js +81 -63
  89. data/vendor/assets/javascripts/moment/gl.js +54 -58
  90. data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
  91. data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
  92. data/vendor/assets/javascripts/moment/gu.js +30 -34
  93. data/vendor/assets/javascripts/moment/he.js +48 -54
  94. data/vendor/assets/javascripts/moment/hi.js +115 -76
  95. data/vendor/assets/javascripts/moment/hr.js +54 -55
  96. data/vendor/assets/javascripts/moment/hu.js +63 -56
  97. data/vendor/assets/javascripts/moment/hy-am.js +44 -48
  98. data/vendor/assets/javascripts/moment/id.js +44 -52
  99. data/vendor/assets/javascripts/moment/is.js +61 -55
  100. data/vendor/assets/javascripts/moment/it-ch.js +64 -0
  101. data/vendor/assets/javascripts/moment/it.js +89 -54
  102. data/vendor/assets/javascripts/moment/ja.js +122 -55
  103. data/vendor/assets/javascripts/moment/jv.js +44 -52
  104. data/vendor/assets/javascripts/moment/ka.js +68 -66
  105. data/vendor/assets/javascripts/moment/kk.js +46 -52
  106. data/vendor/assets/javascripts/moment/km.js +64 -21
  107. data/vendor/assets/javascripts/moment/kn.js +72 -76
  108. data/vendor/assets/javascripts/moment/ko.js +48 -56
  109. data/vendor/assets/javascripts/moment/ku.js +118 -0
  110. data/vendor/assets/javascripts/moment/ky.js +48 -53
  111. data/vendor/assets/javascripts/moment/lb.js +39 -42
  112. data/vendor/assets/javascripts/moment/lo.js +44 -50
  113. data/vendor/assets/javascripts/moment/lt.js +79 -75
  114. data/vendor/assets/javascripts/moment/lv.js +57 -63
  115. data/vendor/assets/javascripts/moment/me.js +53 -48
  116. data/vendor/assets/javascripts/moment/mi.js +15 -21
  117. data/vendor/assets/javascripts/moment/mk.js +46 -52
  118. data/vendor/assets/javascripts/moment/ml.js +51 -53
  119. data/vendor/assets/javascripts/moment/mn.js +99 -0
  120. data/vendor/assets/javascripts/moment/mr.js +140 -100
  121. data/vendor/assets/javascripts/moment/ms-my.js +43 -51
  122. data/vendor/assets/javascripts/moment/ms.js +43 -51
  123. data/vendor/assets/javascripts/moment/mt.js +45 -51
  124. data/vendor/assets/javascripts/moment/my.js +37 -43
  125. data/vendor/assets/javascripts/moment/nb.js +45 -48
  126. data/vendor/assets/javascripts/moment/ne.js +73 -77
  127. data/vendor/assets/javascripts/moment/nl-be.js +70 -57
  128. data/vendor/assets/javascripts/moment/nl.js +72 -57
  129. data/vendor/assets/javascripts/moment/nn.js +46 -47
  130. data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
  131. data/vendor/assets/javascripts/moment/pa-in.js +72 -76
  132. data/vendor/assets/javascripts/moment/pl.js +67 -55
  133. data/vendor/assets/javascripts/moment/pt-br.js +41 -46
  134. data/vendor/assets/javascripts/moment/pt.js +46 -50
  135. data/vendor/assets/javascripts/moment/ro.js +49 -51
  136. data/vendor/assets/javascripts/moment/ru.js +104 -83
  137. data/vendor/assets/javascripts/moment/sd.js +56 -74
  138. data/vendor/assets/javascripts/moment/se.js +41 -46
  139. data/vendor/assets/javascripts/moment/si.js +48 -52
  140. data/vendor/assets/javascripts/moment/sk.js +52 -66
  141. data/vendor/assets/javascripts/moment/sl.js +50 -54
  142. data/vendor/assets/javascripts/moment/sq.js +47 -53
  143. data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
  144. data/vendor/assets/javascripts/moment/sr.js +56 -50
  145. data/vendor/assets/javascripts/moment/ss.js +48 -55
  146. data/vendor/assets/javascripts/moment/sv.js +51 -53
  147. data/vendor/assets/javascripts/moment/sw.js +45 -51
  148. data/vendor/assets/javascripts/moment/ta.js +75 -77
  149. data/vendor/assets/javascripts/moment/te.js +51 -55
  150. data/vendor/assets/javascripts/moment/tet.js +49 -50
  151. data/vendor/assets/javascripts/moment/tg.js +116 -0
  152. data/vendor/assets/javascripts/moment/th.js +45 -49
  153. data/vendor/assets/javascripts/moment/tk.js +91 -0
  154. data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
  155. data/vendor/assets/javascripts/moment/tlh.js +69 -67
  156. data/vendor/assets/javascripts/moment/tr.js +91 -76
  157. data/vendor/assets/javascripts/moment/tzl.js +65 -69
  158. data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
  159. data/vendor/assets/javascripts/moment/tzm.js +38 -44
  160. data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
  161. data/vendor/assets/javascripts/moment/uk.js +78 -68
  162. data/vendor/assets/javascripts/moment/ur.js +56 -74
  163. data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
  164. data/vendor/assets/javascripts/moment/uz.js +42 -50
  165. data/vendor/assets/javascripts/moment/vi.js +54 -55
  166. data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
  167. data/vendor/assets/javascripts/moment/yo.js +44 -52
  168. data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
  169. data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
  170. data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
  171. data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
  172. data/vendor/assets/javascripts/moment.js +2673 -1546
  173. metadata +92 -31
  174. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  175. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  176. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  177. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  178. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  179. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -3,72 +3,66 @@
3
3
  //! author : Colin Dean : https://github.com/colindean
4
4
  //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
5
5
  //! comment : miestasmia corrected the translation by colindean
6
+ //! comment : Vivakvo corrected the translation by colindean and miestasmia
6
7
 
7
- ;(function (global, factory) {
8
- typeof exports === 'object' && typeof module !== 'undefined'
9
- && typeof require === 'function' ? factory(require('../moment')) :
10
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
- factory(global.moment)
12
- }(this, (function (moment) { 'use strict';
8
+ import moment from '../moment';
13
9
 
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[-a de] MMMM, YYYY',
26
- LLL : 'D[-a de] MMMM, YYYY HH:mm',
27
- LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
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',
28
26
  },
29
27
  meridiemParse: /[ap]\.t\.m/i,
30
28
  isPM: function (input) {
31
29
  return input.charAt(0).toLowerCase() === 'p';
32
30
  },
33
- meridiem : function (hours, minutes, isLower) {
31
+ meridiem: function (hours, minutes, isLower) {
34
32
  if (hours > 11) {
35
33
  return isLower ? 'p.t.m.' : 'P.T.M.';
36
34
  } else {
37
35
  return isLower ? 'a.t.m.' : 'A.T.M.';
38
36
  }
39
37
  },
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'
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',
47
45
  },
48
- relativeTime : {
49
- future : 'post %s',
50
- past : 'antaŭ %s',
51
- s : 'sekundoj',
52
- ss : '%d sekundoj',
53
- m : 'minuto',
54
- mm : '%d minutoj',
55
- h : 'horo',
56
- hh : '%d horoj',
57
- d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
58
- dd : '%d tagoj',
59
- M : 'monato',
60
- MM : '%d monatoj',
61
- y : 'jaro',
62
- yy : '%d jaroj'
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',
63
61
  },
64
62
  dayOfMonthOrdinalParse: /\d{1,2}a/,
65
- ordinal : '%da',
66
- week : {
67
- dow : 1, // Monday is the first day of the week.
68
- doy : 7 // The week that contains Jan 1st is the first week of the year.
69
- }
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
+ },
70
68
  });
71
-
72
- return eo;
73
-
74
- })));
@@ -1,23 +1,33 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Spanish (Dominican Republic) [es-do]
3
3
 
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';
4
+ import moment from '../moment';
10
5
 
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
25
 
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
-
15
- var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
16
- var 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;
17
-
18
- var esDo = moment.defineLocale('es-do', {
19
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
20
- monthsShort : function (m, format) {
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) {
21
31
  if (!m) {
22
32
  return monthsShortDot;
23
33
  } else if (/-MMM-/.test(format)) {
@@ -33,60 +43,62 @@ var esDo = moment.defineLocale('es-do', {
33
43
  monthsParse: monthsParse,
34
44
  longMonthsParse: monthsParse,
35
45
  shortMonthsParse: monthsParse,
36
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
37
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
38
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
39
- weekdaysParseExact : true,
40
- longDateFormat : {
41
- LT : 'h:mm A',
42
- LTS : 'h:mm:ss A',
43
- L : 'DD/MM/YYYY',
44
- LL : 'D [de] MMMM [de] YYYY',
45
- LLL : 'D [de] MMMM [de] YYYY h:mm A',
46
- LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
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',
47
57
  },
48
- calendar : {
49
- sameDay : function () {
50
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
58
+ calendar: {
59
+ sameDay: function () {
60
+ return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
51
61
  },
52
- nextDay : function () {
53
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
62
+ nextDay: function () {
63
+ return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
54
64
  },
55
- nextWeek : function () {
56
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
65
+ nextWeek: function () {
66
+ return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
57
67
  },
58
- lastDay : function () {
59
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
68
+ lastDay: function () {
69
+ return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
60
70
  },
61
- lastWeek : function () {
62
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
71
+ lastWeek: function () {
72
+ return (
73
+ '[el] dddd [pasado a la' +
74
+ (this.hours() !== 1 ? 's' : '') +
75
+ '] LT'
76
+ );
63
77
  },
64
- sameElse : 'L'
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',
65
97
  },
66
- relativeTime : {
67
- future : 'en %s',
68
- past : 'hace %s',
69
- s : 'unos segundos',
70
- ss : '%d segundos',
71
- m : 'un minuto',
72
- mm : '%d minutos',
73
- h : 'una hora',
74
- hh : '%d horas',
75
- d : 'un día',
76
- dd : '%d días',
77
- M : 'un mes',
78
- MM : '%d meses',
79
- y : 'un año',
80
- yy : '%d años'
98
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
99
+ ordinal: '%',
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.
81
103
  },
82
- dayOfMonthOrdinalParse : /\d{1,2}º/,
83
- ordinal : '%dº',
84
- week : {
85
- dow : 1, // Monday is the first day of the week.
86
- doy : 4 // The week that contains Jan 4th is the first week of the year.
87
- }
88
104
  });
89
-
90
- return esDo;
91
-
92
- })));
@@ -0,0 +1,106 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Spanish (Mexico) [es-mx]
3
+ //! author : JC Franco : https://github.com/jcfranco
4
+
5
+ import moment from '../moment';
6
+
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;
26
+
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';
62
+ },
63
+ nextDay: function () {
64
+ return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
65
+ },
66
+ nextWeek: function () {
67
+ return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
68
+ },
69
+ lastDay: function () {
70
+ return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
71
+ },
72
+ lastWeek: function () {
73
+ return (
74
+ '[el] dddd [pasado a la' +
75
+ (this.hours() !== 1 ? 's' : '') +
76
+ '] LT'
77
+ );
78
+ },
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
+ });
@@ -1,21 +1,35 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Spanish (United States) [es-us]
3
3
  //! author : bustta : https://github.com/bustta
4
+ //! author : chrisrodz : https://github.com/chrisrodz
4
5
 
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
+ import moment from '../moment';
11
7
 
8
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
9
+ '_'
10
+ ),
11
+ monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
12
+ monthsParse = [
13
+ /^ene/i,
14
+ /^feb/i,
15
+ /^mar/i,
16
+ /^abr/i,
17
+ /^may/i,
18
+ /^jun/i,
19
+ /^jul/i,
20
+ /^ago/i,
21
+ /^sep/i,
22
+ /^oct/i,
23
+ /^nov/i,
24
+ /^dic/i,
25
+ ],
26
+ 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
27
 
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
-
16
- var esUs = moment.defineLocale('es-us', {
17
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
18
- monthsShort : function (m, format) {
28
+ export default moment.defineLocale('es-us', {
29
+ months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
30
+ '_'
31
+ ),
32
+ monthsShort: function (m, format) {
19
33
  if (!m) {
20
34
  return monthsShortDot;
21
35
  } else if (/-MMM-/.test(format)) {
@@ -24,61 +38,69 @@ var esUs = moment.defineLocale('es-us', {
24
38
  return monthsShortDot[m.month()];
25
39
  }
26
40
  },
27
- monthsParseExact : true,
28
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
29
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
30
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
31
- weekdaysParseExact : true,
32
- longDateFormat : {
33
- LT : 'h:mm A',
34
- LTS : 'h:mm:ss A',
35
- L : 'MM/DD/YYYY',
36
- LL : 'MMMM [de] D [de] YYYY',
37
- LLL : 'MMMM [de] D [de] YYYY h:mm A',
38
- LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
41
+ monthsRegex: monthsRegex,
42
+ monthsShortRegex: monthsRegex,
43
+ monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
44
+ monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
45
+ monthsParse: monthsParse,
46
+ longMonthsParse: monthsParse,
47
+ shortMonthsParse: monthsParse,
48
+ weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
49
+ weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
50
+ weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
51
+ weekdaysParseExact: true,
52
+ longDateFormat: {
53
+ LT: 'h:mm A',
54
+ LTS: 'h:mm:ss A',
55
+ L: 'MM/DD/YYYY',
56
+ LL: 'D [de] MMMM [de] YYYY',
57
+ LLL: 'D [de] MMMM [de] YYYY h:mm A',
58
+ LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
39
59
  },
40
- calendar : {
41
- sameDay : function () {
42
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
60
+ calendar: {
61
+ sameDay: function () {
62
+ return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
43
63
  },
44
- nextDay : function () {
45
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
64
+ nextDay: function () {
65
+ return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
46
66
  },
47
- nextWeek : function () {
48
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
67
+ nextWeek: function () {
68
+ return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
49
69
  },
50
- lastDay : function () {
51
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
70
+ lastDay: function () {
71
+ return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
52
72
  },
53
- lastWeek : function () {
54
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
73
+ lastWeek: function () {
74
+ return (
75
+ '[el] dddd [pasado a la' +
76
+ (this.hours() !== 1 ? 's' : '') +
77
+ '] LT'
78
+ );
55
79
  },
56
- sameElse : 'L'
80
+ sameElse: 'L',
81
+ },
82
+ relativeTime: {
83
+ future: 'en %s',
84
+ past: 'hace %s',
85
+ s: 'unos segundos',
86
+ ss: '%d segundos',
87
+ m: 'un minuto',
88
+ mm: '%d minutos',
89
+ h: 'una hora',
90
+ hh: '%d horas',
91
+ d: 'un día',
92
+ dd: '%d días',
93
+ w: 'una semana',
94
+ ww: '%d semanas',
95
+ M: 'un mes',
96
+ MM: '%d meses',
97
+ y: 'un año',
98
+ yy: '%d años',
57
99
  },
58
- relativeTime : {
59
- future : 'en %s',
60
- past : 'hace %s',
61
- s : 'unos segundos',
62
- ss : '%d segundos',
63
- m : 'un minuto',
64
- mm : '%d minutos',
65
- h : 'una hora',
66
- hh : '%d horas',
67
- d : 'un día',
68
- dd : '%d días',
69
- M : 'un mes',
70
- MM : '%d meses',
71
- y : 'un año',
72
- yy : '%d años'
100
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
101
+ ordinal: '%',
102
+ week: {
103
+ dow: 0, // Sunday is the first day of the week.
104
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
73
105
  },
74
- dayOfMonthOrdinalParse : /\d{1,2}º/,
75
- ordinal : '%dº',
76
- week : {
77
- dow : 0, // Sunday is the first day of the week.
78
- doy : 6 // The week that contains Jan 1st is the first week of the year.
79
- }
80
106
  });
81
-
82
- return esUs;
83
-
84
- })));