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,101 +3,145 @@
3
3
  //! author : Harshad Kale : https://github.com/kalehv
4
4
  //! author : Vivek Athalye : https://github.com/vnathalye
5
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
-
6
+ import moment from '../moment';
13
7
 
14
8
  var symbolMap = {
15
- '1': '१',
16
- '2': '२',
17
- '3': '३',
18
- '4': '४',
19
- '5': '५',
20
- '6': '६',
21
- '7': '७',
22
- '8': '८',
23
- '9': '९',
24
- '0': '०'
25
- };
26
- var numberMap = {
27
- '१': '1',
28
- '२': '2',
29
- '३': '3',
30
- '४': '4',
31
- '५': '5',
32
- '६': '6',
33
- '७': '7',
34
- '८': '8',
35
- '९': '9',
36
- '०': '0'
37
- };
9
+ 1: '१',
10
+ 2: '२',
11
+ 3: '३',
12
+ 4: '४',
13
+ 5: '५',
14
+ 6: '६',
15
+ 7: '७',
16
+ 8: '८',
17
+ 9: '९',
18
+ 0: '०',
19
+ },
20
+ numberMap = {
21
+ '१': '1',
22
+ '२': '2',
23
+ '३': '3',
24
+ '४': '4',
25
+ '५': '5',
26
+ '६': '6',
27
+ '७': '7',
28
+ '८': '8',
29
+ '९': '9',
30
+ '०': '0',
31
+ };
38
32
 
39
- function relativeTimeMr(number, withoutSuffix, string, isFuture)
40
- {
33
+ function relativeTimeMr(number, withoutSuffix, string, isFuture) {
41
34
  var output = '';
42
35
  if (withoutSuffix) {
43
36
  switch (string) {
44
- case 's': output = 'काही सेकंद'; break;
45
- case 'ss': output = '%d सेकंद'; break;
46
- case 'm': output = 'एक मिनिट'; break;
47
- case 'mm': output = '%d मिनिटे'; break;
48
- case 'h': output = 'एक तास'; break;
49
- case 'hh': output = '%d तास'; break;
50
- case 'd': output = 'एक दिवस'; break;
51
- case 'dd': output = '%d दिवस'; break;
52
- case 'M': output = 'एक महिना'; break;
53
- case 'MM': output = '%d महिने'; break;
54
- case 'y': output = 'एक वर्ष'; break;
55
- case 'yy': output = '%d वर्षे'; break;
37
+ case 's':
38
+ output = 'काही सेकंद';
39
+ break;
40
+ case 'ss':
41
+ output = '%d सेकंद';
42
+ break;
43
+ case 'm':
44
+ output = 'एक मिनिट';
45
+ break;
46
+ case 'mm':
47
+ output = '%d मिनिटे';
48
+ break;
49
+ case 'h':
50
+ output = 'एक तास';
51
+ break;
52
+ case 'hh':
53
+ output = '%d तास';
54
+ break;
55
+ case 'd':
56
+ output = 'एक दिवस';
57
+ break;
58
+ case 'dd':
59
+ output = '%d दिवस';
60
+ break;
61
+ case 'M':
62
+ output = 'एक महिना';
63
+ break;
64
+ case 'MM':
65
+ output = '%d महिने';
66
+ break;
67
+ case 'y':
68
+ output = 'एक वर्ष';
69
+ break;
70
+ case 'yy':
71
+ output = '%d वर्षे';
72
+ break;
56
73
  }
57
- }
58
- else {
74
+ } else {
59
75
  switch (string) {
60
- case 's': output = 'काही सेकंदां'; break;
61
- case 'ss': output = '%d सेकंदां'; break;
62
- case 'm': output = 'एका मिनिटा'; break;
63
- case 'mm': output = '%d मिनिटां'; break;
64
- case 'h': output = 'एका तासा'; break;
65
- case 'hh': output = '%d तासां'; break;
66
- case 'd': output = 'एका दिवसा'; break;
67
- case 'dd': output = '%d दिवसां'; break;
68
- case 'M': output = 'एका महिन्या'; break;
69
- case 'MM': output = '%d महिन्यां'; break;
70
- case 'y': output = 'एका वर्षा'; break;
71
- case 'yy': output = '%d वर्षां'; break;
76
+ case 's':
77
+ output = 'काही सेकंदां';
78
+ break;
79
+ case 'ss':
80
+ output = '%d सेकंदां';
81
+ break;
82
+ case 'm':
83
+ output = 'एका मिनिटा';
84
+ break;
85
+ case 'mm':
86
+ output = '%d मिनिटां';
87
+ break;
88
+ case 'h':
89
+ output = 'एका तासा';
90
+ break;
91
+ case 'hh':
92
+ output = '%d तासां';
93
+ break;
94
+ case 'd':
95
+ output = 'एका दिवसा';
96
+ break;
97
+ case 'dd':
98
+ output = '%d दिवसां';
99
+ break;
100
+ case 'M':
101
+ output = 'एका महिन्या';
102
+ break;
103
+ case 'MM':
104
+ output = '%d महिन्यां';
105
+ break;
106
+ case 'y':
107
+ output = 'एका वर्षा';
108
+ break;
109
+ case 'yy':
110
+ output = '%d वर्षां';
111
+ break;
72
112
  }
73
113
  }
74
114
  return output.replace(/%d/i, number);
75
115
  }
76
116
 
77
- var mr = moment.defineLocale('mr', {
78
- months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
79
- monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
80
- monthsParseExact : true,
81
- weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
82
- weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
83
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
84
- longDateFormat : {
85
- LT : 'A h:mm वाजता',
86
- LTS : 'A h:mm:ss वाजता',
87
- L : 'DD/MM/YYYY',
88
- LL : 'D MMMM YYYY',
89
- LLL : 'D MMMM YYYY, A h:mm वाजता',
90
- LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
117
+ export default moment.defineLocale('mr', {
118
+ months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
119
+ '_'
120
+ ),
121
+ monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
122
+ '_'
123
+ ),
124
+ monthsParseExact: true,
125
+ weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
126
+ weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
127
+ weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
128
+ longDateFormat: {
129
+ LT: 'A h:mm वाजता',
130
+ LTS: 'A h:mm:ss वाजता',
131
+ L: 'DD/MM/YYYY',
132
+ LL: 'D MMMM YYYY',
133
+ LLL: 'D MMMM YYYY, A h:mm वाजता',
134
+ LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
91
135
  },
92
- calendar : {
93
- sameDay : '[आज] LT',
94
- nextDay : '[उद्या] LT',
95
- nextWeek : 'dddd, LT',
96
- lastDay : '[काल] LT',
136
+ calendar: {
137
+ sameDay: '[आज] LT',
138
+ nextDay: '[उद्या] LT',
139
+ nextWeek: 'dddd, LT',
140
+ lastDay: '[काल] LT',
97
141
  lastWeek: '[मागील] dddd, LT',
98
- sameElse : 'L'
142
+ sameElse: 'L',
99
143
  },
100
- relativeTime : {
144
+ relativeTime: {
101
145
  future: '%sमध्ये',
102
146
  past: '%sपूर्वी',
103
147
  s: relativeTimeMr,
@@ -111,7 +155,7 @@ var mr = moment.defineLocale('mr', {
111
155
  M: relativeTimeMr,
112
156
  MM: relativeTimeMr,
113
157
  y: relativeTimeMr,
114
- yy: relativeTimeMr
158
+ yy: relativeTimeMr,
115
159
  },
116
160
  preparse: function (string) {
117
161
  return string.replace(/[१२३४५६७८९०]/g, function (match) {
@@ -123,25 +167,25 @@ var mr = moment.defineLocale('mr', {
123
167
  return symbolMap[match];
124
168
  });
125
169
  },
126
- meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
127
- meridiemHour : function (hour, meridiem) {
170
+ meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
171
+ meridiemHour: function (hour, meridiem) {
128
172
  if (hour === 12) {
129
173
  hour = 0;
130
174
  }
131
- if (meridiem === 'रात्री') {
132
- return hour < 4 ? hour : hour + 12;
133
- } else if (meridiem === 'सकाळी') {
175
+ if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
134
176
  return hour;
135
- } else if (meridiem === 'दुपारी') {
136
- return hour >= 10 ? hour : hour + 12;
137
- } else if (meridiem === 'सायंकाळी') {
138
- return hour + 12;
177
+ } else if (
178
+ meridiem === 'दुपारी' ||
179
+ meridiem === 'सायंकाळी' ||
180
+ meridiem === 'रात्री'
181
+ ) {
182
+ return hour >= 12 ? hour : hour + 12;
139
183
  }
140
184
  },
141
185
  meridiem: function (hour, minute, isLower) {
142
- if (hour < 4) {
143
- return 'रात्री';
144
- } else if (hour < 10) {
186
+ if (hour >= 0 && hour < 6) {
187
+ return 'पहाटे';
188
+ } else if (hour < 12) {
145
189
  return 'सकाळी';
146
190
  } else if (hour < 17) {
147
191
  return 'दुपारी';
@@ -151,12 +195,8 @@ var mr = moment.defineLocale('mr', {
151
195
  return 'रात्री';
152
196
  }
153
197
  },
154
- week : {
155
- dow : 0, // Sunday is the first day of the week.
156
- doy : 6 // The week that contains Jan 1st is the first week of the year.
157
- }
198
+ week: {
199
+ dow: 0, // Sunday is the first day of the week.
200
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
201
+ },
158
202
  });
159
-
160
- return mr;
161
-
162
- })));
@@ -3,27 +3,23 @@
3
3
  //! note : DEPRECATED, the correct one is [ms]
4
4
  //! author : Weldan Jamili : https://github.com/weldan
5
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';
6
+ import moment from '../moment';
12
7
 
13
-
14
- var msMy = moment.defineLocale('ms-my', {
15
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
17
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
18
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
19
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH.mm',
22
- LTS : 'HH.mm.ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY [pukul] HH.mm',
26
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
8
+ export default moment.defineLocale('ms-my', {
9
+ months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
10
+ '_'
11
+ ),
12
+ monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
13
+ weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
14
+ weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
15
+ weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
16
+ longDateFormat: {
17
+ LT: 'HH.mm',
18
+ LTS: 'HH.mm.ss',
19
+ L: 'DD/MM/YYYY',
20
+ LL: 'D MMMM YYYY',
21
+ LLL: 'D MMMM YYYY [pukul] HH.mm',
22
+ LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
27
23
  },
28
24
  meridiemParse: /pagi|tengahari|petang|malam/,
29
25
  meridiemHour: function (hour, meridiem) {
@@ -38,7 +34,7 @@ var msMy = moment.defineLocale('ms-my', {
38
34
  return hour + 12;
39
35
  }
40
36
  },
41
- meridiem : function (hours, minutes, isLower) {
37
+ meridiem: function (hours, minutes, isLower) {
42
38
  if (hours < 11) {
43
39
  return 'pagi';
44
40
  } else if (hours < 15) {
@@ -49,36 +45,32 @@ var msMy = moment.defineLocale('ms-my', {
49
45
  return 'malam';
50
46
  }
51
47
  },
52
- calendar : {
53
- sameDay : '[Hari ini pukul] LT',
54
- nextDay : '[Esok pukul] LT',
55
- nextWeek : 'dddd [pukul] LT',
56
- lastDay : '[Kelmarin pukul] LT',
57
- lastWeek : 'dddd [lepas pukul] LT',
58
- sameElse : 'L'
48
+ calendar: {
49
+ sameDay: '[Hari ini pukul] LT',
50
+ nextDay: '[Esok pukul] LT',
51
+ nextWeek: 'dddd [pukul] LT',
52
+ lastDay: '[Kelmarin pukul] LT',
53
+ lastWeek: 'dddd [lepas pukul] LT',
54
+ sameElse: 'L',
55
+ },
56
+ relativeTime: {
57
+ future: 'dalam %s',
58
+ past: '%s yang lepas',
59
+ s: 'beberapa saat',
60
+ ss: '%d saat',
61
+ m: 'seminit',
62
+ mm: '%d minit',
63
+ h: 'sejam',
64
+ hh: '%d jam',
65
+ d: 'sehari',
66
+ dd: '%d hari',
67
+ M: 'sebulan',
68
+ MM: '%d bulan',
69
+ y: 'setahun',
70
+ yy: '%d tahun',
59
71
  },
60
- relativeTime : {
61
- future : 'dalam %s',
62
- past : '%s yang lepas',
63
- s : 'beberapa saat',
64
- ss : '%d saat',
65
- m : 'seminit',
66
- mm : '%d minit',
67
- h : 'sejam',
68
- hh : '%d jam',
69
- d : 'sehari',
70
- dd : '%d hari',
71
- M : 'sebulan',
72
- MM : '%d bulan',
73
- y : 'setahun',
74
- yy : '%d tahun'
72
+ week: {
73
+ dow: 1, // Monday is the first day of the week.
74
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
75
75
  },
76
- week : {
77
- dow : 1, // Monday is the first day of the week.
78
- doy : 7 // The week that contains Jan 1st is the first week of the year.
79
- }
80
76
  });
81
-
82
- return msMy;
83
-
84
- })));
@@ -2,27 +2,23 @@
2
2
  //! locale : Malay [ms]
3
3
  //! author : Weldan Jamili : https://github.com/weldan
4
4
 
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';
5
+ import moment from '../moment';
11
6
 
12
-
13
- var ms = moment.defineLocale('ms', {
14
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
15
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
16
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
17
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
18
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
19
- longDateFormat : {
20
- LT : 'HH.mm',
21
- LTS : 'HH.mm.ss',
22
- L : 'DD/MM/YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY [pukul] HH.mm',
25
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
7
+ export default moment.defineLocale('ms', {
8
+ months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
12
+ weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
13
+ weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
14
+ weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
15
+ longDateFormat: {
16
+ LT: 'HH.mm',
17
+ LTS: 'HH.mm.ss',
18
+ L: 'DD/MM/YYYY',
19
+ LL: 'D MMMM YYYY',
20
+ LLL: 'D MMMM YYYY [pukul] HH.mm',
21
+ LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
26
22
  },
27
23
  meridiemParse: /pagi|tengahari|petang|malam/,
28
24
  meridiemHour: function (hour, meridiem) {
@@ -37,7 +33,7 @@ var ms = moment.defineLocale('ms', {
37
33
  return hour + 12;
38
34
  }
39
35
  },
40
- meridiem : function (hours, minutes, isLower) {
36
+ meridiem: function (hours, minutes, isLower) {
41
37
  if (hours < 11) {
42
38
  return 'pagi';
43
39
  } else if (hours < 15) {
@@ -48,36 +44,32 @@ var ms = moment.defineLocale('ms', {
48
44
  return 'malam';
49
45
  }
50
46
  },
51
- calendar : {
52
- sameDay : '[Hari ini pukul] LT',
53
- nextDay : '[Esok pukul] LT',
54
- nextWeek : 'dddd [pukul] LT',
55
- lastDay : '[Kelmarin pukul] LT',
56
- lastWeek : 'dddd [lepas pukul] LT',
57
- sameElse : 'L'
47
+ calendar: {
48
+ sameDay: '[Hari ini pukul] LT',
49
+ nextDay: '[Esok pukul] LT',
50
+ nextWeek: 'dddd [pukul] LT',
51
+ lastDay: '[Kelmarin pukul] LT',
52
+ lastWeek: 'dddd [lepas pukul] LT',
53
+ sameElse: 'L',
54
+ },
55
+ relativeTime: {
56
+ future: 'dalam %s',
57
+ past: '%s yang lepas',
58
+ s: 'beberapa saat',
59
+ ss: '%d saat',
60
+ m: 'seminit',
61
+ mm: '%d minit',
62
+ h: 'sejam',
63
+ hh: '%d jam',
64
+ d: 'sehari',
65
+ dd: '%d hari',
66
+ M: 'sebulan',
67
+ MM: '%d bulan',
68
+ y: 'setahun',
69
+ yy: '%d tahun',
58
70
  },
59
- relativeTime : {
60
- future : 'dalam %s',
61
- past : '%s yang lepas',
62
- s : 'beberapa saat',
63
- ss : '%d saat',
64
- m : 'seminit',
65
- mm : '%d minit',
66
- h : 'sejam',
67
- hh : '%d jam',
68
- d : 'sehari',
69
- dd : '%d hari',
70
- M : 'sebulan',
71
- MM : '%d bulan',
72
- y : 'setahun',
73
- yy : '%d tahun'
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
74
  },
75
- week : {
76
- dow : 1, // Monday is the first day of the week.
77
- doy : 7 // The week that contains Jan 1st is the first week of the year.
78
- }
79
75
  });
80
-
81
- return ms;
82
-
83
- })));
@@ -2,60 +2,54 @@
2
2
  //! locale : Maltese (Malta) [mt]
3
3
  //! author : Alessandro Maruccia : https://github.com/alesma
4
4
 
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';
5
+ import moment from '../moment';
11
6
 
12
-
13
- var mt = moment.defineLocale('mt', {
14
- months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
15
- monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
16
- weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
17
- weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
18
- weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
19
- longDateFormat : {
20
- LT : 'HH:mm',
21
- LTS : 'HH:mm:ss',
22
- L : 'DD/MM/YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY HH:mm',
25
- LLLL : 'dddd, D MMMM YYYY HH:mm'
7
+ export default moment.defineLocale('mt', {
8
+ months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
12
+ weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
13
+ '_'
14
+ ),
15
+ weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
16
+ weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'HH:mm',
19
+ LTS: 'HH:mm:ss',
20
+ L: 'DD/MM/YYYY',
21
+ LL: 'D MMMM YYYY',
22
+ LLL: 'D MMMM YYYY HH:mm',
23
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
26
24
  },
27
- calendar : {
28
- sameDay : '[Illum fil-]LT',
29
- nextDay : '[Għada fil-]LT',
30
- nextWeek : 'dddd [fil-]LT',
31
- lastDay : '[Il-bieraħ fil-]LT',
32
- lastWeek : 'dddd [li għadda] [fil-]LT',
33
- sameElse : 'L'
25
+ calendar: {
26
+ sameDay: '[Illum fil-]LT',
27
+ nextDay: '[Għada fil-]LT',
28
+ nextWeek: 'dddd [fil-]LT',
29
+ lastDay: '[Il-bieraħ fil-]LT',
30
+ lastWeek: 'dddd [li għadda] [fil-]LT',
31
+ sameElse: 'L',
34
32
  },
35
- relativeTime : {
36
- future : 'f’ %s',
37
- past : '%s ilu',
38
- s : 'ftit sekondi',
39
- ss : '%d sekondi',
40
- m : 'minuta',
41
- mm : '%d minuti',
42
- h : 'siegħa',
43
- hh : '%d siegħat',
44
- d : 'ġurnata',
45
- dd : '%d ġranet',
46
- M : 'xahar',
47
- MM : '%d xhur',
48
- y : 'sena',
49
- yy : '%d sni'
33
+ relativeTime: {
34
+ future: 'f’ %s',
35
+ past: '%s ilu',
36
+ s: 'ftit sekondi',
37
+ ss: '%d sekondi',
38
+ m: 'minuta',
39
+ mm: '%d minuti',
40
+ h: 'siegħa',
41
+ hh: '%d siegħat',
42
+ d: 'ġurnata',
43
+ dd: '%d ġranet',
44
+ M: 'xahar',
45
+ MM: '%d xhur',
46
+ y: 'sena',
47
+ yy: '%d sni',
50
48
  },
51
- dayOfMonthOrdinalParse : /\d{1,2}º/,
49
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
52
50
  ordinal: '%dº',
53
- week : {
54
- dow : 1, // Monday is the first day of the week.
55
- doy : 4 // The week that contains Jan 4th is the first week of the year.
56
- }
51
+ week: {
52
+ dow: 1, // Monday is the first day of the week.
53
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
54
+ },
57
55
  });
58
-
59
- return mt;
60
-
61
- })));