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
@@ -2,77 +2,120 @@
2
2
  //! locale : Hindi [hi]
3
3
  //! author : Mayank Singhal : https://github.com/mayanksinghal
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';
11
-
5
+ import moment from '../moment';
12
6
 
13
7
  var symbolMap = {
14
- '1': '१',
15
- '2': '२',
16
- '3': '३',
17
- '4': '४',
18
- '5': '५',
19
- '6': '६',
20
- '7': '७',
21
- '8': '८',
22
- '9': '९',
23
- '0': '०'
24
- };
25
- var numberMap = {
26
- '१': '1',
27
- '२': '2',
28
- '३': '3',
29
- '४': '4',
30
- '५': '5',
31
- '६': '6',
32
- '७': '7',
33
- '८': '8',
34
- '९': '9',
35
- '०': '0'
36
- };
8
+ 1: '१',
9
+ 2: '२',
10
+ 3: '३',
11
+ 4: '४',
12
+ 5: '५',
13
+ 6: '६',
14
+ 7: '७',
15
+ 8: '८',
16
+ 9: '९',
17
+ 0: '०',
18
+ },
19
+ numberMap = {
20
+ '१': '1',
21
+ '२': '2',
22
+ '३': '3',
23
+ '४': '4',
24
+ '५': '5',
25
+ '६': '6',
26
+ '७': '7',
27
+ '८': '8',
28
+ '९': '9',
29
+ '०': '0',
30
+ },
31
+ monthsParse = [
32
+ /^जन/i,
33
+ /^फ़र|फर/i,
34
+ /^मार्च/i,
35
+ /^अप्रै/i,
36
+ /^मई/i,
37
+ /^जून/i,
38
+ /^जुल/i,
39
+ /^अग/i,
40
+ /^सितं|सित/i,
41
+ /^अक्टू/i,
42
+ /^नव|नवं/i,
43
+ /^दिसं|दिस/i,
44
+ ],
45
+ shortMonthsParse = [
46
+ /^जन/i,
47
+ /^फ़र/i,
48
+ /^मार्च/i,
49
+ /^अप्रै/i,
50
+ /^मई/i,
51
+ /^जून/i,
52
+ /^जुल/i,
53
+ /^अग/i,
54
+ /^सित/i,
55
+ /^अक्टू/i,
56
+ /^नव/i,
57
+ /^दिस/i,
58
+ ];
37
59
 
38
- var hi = moment.defineLocale('hi', {
39
- months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
40
- monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
41
- monthsParseExact: true,
42
- weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
43
- weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
44
- weekdaysMin : '_सो_मं_बु_गु_शु_श'.split('_'),
45
- longDateFormat : {
46
- LT : 'A h:mm बजे',
47
- LTS : 'A h:mm:ss बजे',
48
- L : 'DD/MM/YYYY',
49
- LL : 'D MMMM YYYY',
50
- LLL : 'D MMMM YYYY, A h:mm बजे',
51
- LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
60
+ export default moment.defineLocale('hi', {
61
+ months: {
62
+ format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
63
+ '_'
64
+ ),
65
+ standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
66
+ '_'
67
+ ),
52
68
  },
53
- calendar : {
54
- sameDay : '[आज] LT',
55
- nextDay : '[कल] LT',
56
- nextWeek : 'dddd, LT',
57
- lastDay : '[कल] LT',
58
- lastWeek : '[पिछले] dddd, LT',
59
- sameElse : 'L'
69
+ monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
70
+ '_'
71
+ ),
72
+ weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
73
+ weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
74
+ weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
75
+ longDateFormat: {
76
+ LT: 'A h:mm बजे',
77
+ LTS: 'A h:mm:ss बजे',
78
+ L: 'DD/MM/YYYY',
79
+ LL: 'D MMMM YYYY',
80
+ LLL: 'D MMMM YYYY, A h:mm बजे',
81
+ LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
60
82
  },
61
- relativeTime : {
62
- future : '%s में',
63
- past : '%s पहले',
64
- s : 'कुछ ही क्षण',
65
- ss : '%d सेकंड',
66
- m : 'एक मिनट',
67
- mm : '%d मिनट',
68
- h : 'एक घंटा',
69
- hh : '%d घंटे',
70
- d : 'एक दिन',
71
- dd : '%d दिन',
72
- M : 'एक महीने',
73
- MM : '%d महीने',
74
- y : 'एक वर्ष',
75
- yy : '%d वर्ष'
83
+
84
+ monthsParse: monthsParse,
85
+ longMonthsParse: monthsParse,
86
+ shortMonthsParse: shortMonthsParse,
87
+
88
+ monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
89
+
90
+ monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
91
+
92
+ monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
93
+
94
+ monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
95
+
96
+ calendar: {
97
+ sameDay: '[आज] LT',
98
+ nextDay: '[कल] LT',
99
+ nextWeek: 'dddd, LT',
100
+ lastDay: '[कल] LT',
101
+ lastWeek: '[पिछले] dddd, LT',
102
+ sameElse: 'L',
103
+ },
104
+ relativeTime: {
105
+ future: '%s में',
106
+ past: '%s पहले',
107
+ s: 'कुछ ही क्षण',
108
+ ss: '%d सेकंड',
109
+ m: 'एक मिनट',
110
+ mm: '%d मिनट',
111
+ h: 'एक घंटा',
112
+ hh: '%d घंटे',
113
+ d: 'एक दिन',
114
+ dd: '%d दिन',
115
+ M: 'एक महीने',
116
+ MM: '%d महीने',
117
+ y: 'एक वर्ष',
118
+ yy: '%d वर्ष',
76
119
  },
77
120
  preparse: function (string) {
78
121
  return string.replace(/[१२३४५६७८९०]/g, function (match) {
@@ -87,7 +130,7 @@ var hi = moment.defineLocale('hi', {
87
130
  // Hindi notation for meridiems are quite fuzzy in practice. While there exists
88
131
  // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
89
132
  meridiemParse: /रात|सुबह|दोपहर|शाम/,
90
- meridiemHour : function (hour, meridiem) {
133
+ meridiemHour: function (hour, meridiem) {
91
134
  if (hour === 12) {
92
135
  hour = 0;
93
136
  }
@@ -101,7 +144,7 @@ var hi = moment.defineLocale('hi', {
101
144
  return hour + 12;
102
145
  }
103
146
  },
104
- meridiem : function (hour, minute, isLower) {
147
+ meridiem: function (hour, minute, isLower) {
105
148
  if (hour < 4) {
106
149
  return 'रात';
107
150
  } else if (hour < 10) {
@@ -114,12 +157,8 @@ var hi = moment.defineLocale('hi', {
114
157
  return 'रात';
115
158
  }
116
159
  },
117
- week : {
118
- dow : 0, // Sunday is the first day of the week.
119
- doy : 6 // The week that contains Jan 1st is the first week of the year.
120
- }
160
+ week: {
161
+ dow: 0, // Sunday is the first day of the week.
162
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
163
+ },
121
164
  });
122
-
123
- return hi;
124
-
125
- })));
@@ -2,13 +2,7 @@
2
2
  //! locale : Croatian [hr]
3
3
  //! author : Bojan Marković : https://github.com/bmarkovic
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';
11
-
5
+ import moment from '../moment';
12
6
 
13
7
  function translate(number, withoutSuffix, key) {
14
8
  var result = number + ' ';
@@ -72,29 +66,37 @@ function translate(number, withoutSuffix, key) {
72
66
  }
73
67
  }
74
68
 
75
- var hr = moment.defineLocale('hr', {
76
- months : {
77
- format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
78
- standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
69
+ export default moment.defineLocale('hr', {
70
+ months: {
71
+ format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
72
+ '_'
73
+ ),
74
+ standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
75
+ '_'
76
+ ),
79
77
  },
80
- monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
78
+ monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
79
+ '_'
80
+ ),
81
81
  monthsParseExact: true,
82
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
83
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
84
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
85
- weekdaysParseExact : true,
86
- longDateFormat : {
87
- LT : 'H:mm',
88
- LTS : 'H:mm:ss',
89
- L : 'DD.MM.YYYY',
90
- LL : 'D. MMMM YYYY',
91
- LLL : 'D. MMMM YYYY H:mm',
92
- LLLL : 'dddd, D. MMMM YYYY H:mm'
82
+ weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
83
+ '_'
84
+ ),
85
+ weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
86
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
87
+ weekdaysParseExact: true,
88
+ longDateFormat: {
89
+ LT: 'H:mm',
90
+ LTS: 'H:mm:ss',
91
+ L: 'DD.MM.YYYY',
92
+ LL: 'Do MMMM YYYY',
93
+ LLL: 'Do MMMM YYYY H:mm',
94
+ LLLL: 'dddd, Do MMMM YYYY H:mm',
93
95
  },
94
- calendar : {
95
- sameDay : '[danas u] LT',
96
- nextDay : '[sutra u] LT',
97
- nextWeek : function () {
96
+ calendar: {
97
+ sameDay: '[danas u] LT',
98
+ nextDay: '[sutra u] LT',
99
+ nextWeek: function () {
98
100
  switch (this.day()) {
99
101
  case 0:
100
102
  return '[u] [nedjelju] [u] LT';
@@ -109,12 +111,13 @@ var hr = moment.defineLocale('hr', {
109
111
  return '[u] dddd [u] LT';
110
112
  }
111
113
  },
112
- lastDay : '[jučer u] LT',
113
- lastWeek : function () {
114
+ lastDay: '[jučer u] LT',
115
+ lastWeek: function () {
114
116
  switch (this.day()) {
115
117
  case 0:
118
+ return '[prošlu] [nedjelju] [u] LT';
116
119
  case 3:
117
- return '[prošlu] dddd [u] LT';
120
+ return '[prošlu] [srijedu] [u] LT';
118
121
  case 6:
119
122
  return '[prošle] [subote] [u] LT';
120
123
  case 1:
@@ -124,32 +127,28 @@ var hr = moment.defineLocale('hr', {
124
127
  return '[prošli] dddd [u] LT';
125
128
  }
126
129
  },
127
- sameElse : 'L'
130
+ sameElse: 'L',
128
131
  },
129
- relativeTime : {
130
- future : 'za %s',
131
- past : 'prije %s',
132
- s : 'par sekundi',
133
- ss : translate,
134
- m : translate,
135
- mm : translate,
136
- h : translate,
137
- hh : translate,
138
- d : 'dan',
139
- dd : translate,
140
- M : 'mjesec',
141
- MM : translate,
142
- y : 'godinu',
143
- yy : translate
132
+ relativeTime: {
133
+ future: 'za %s',
134
+ past: 'prije %s',
135
+ s: 'par sekundi',
136
+ ss: translate,
137
+ m: translate,
138
+ mm: translate,
139
+ h: translate,
140
+ hh: translate,
141
+ d: 'dan',
142
+ dd: translate,
143
+ M: 'mjesec',
144
+ MM: translate,
145
+ y: 'godinu',
146
+ yy: translate,
144
147
  },
145
148
  dayOfMonthOrdinalParse: /\d{1,2}\./,
146
- ordinal : '%d.',
147
- week : {
148
- dow : 1, // Monday is the first day of the week.
149
- doy : 7 // The week that contains Jan 1st is the first week of the year.
150
- }
149
+ ordinal: '%d.',
150
+ week: {
151
+ dow: 1, // Monday is the first day of the week.
152
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
153
+ },
151
154
  });
152
-
153
- return hr;
154
-
155
- })));
@@ -1,23 +1,24 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Hungarian [hu]
3
3
  //! author : Adam Brunner : https://github.com/adambrunner
4
+ //! author : Peter Viszt : https://github.com/passatgt
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
 
12
-
13
- var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
8
+ var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
9
+ ' '
10
+ );
14
11
  function translate(number, withoutSuffix, key, isFuture) {
15
12
  var num = number;
16
13
  switch (key) {
17
14
  case 's':
18
- return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
15
+ return isFuture || withoutSuffix
16
+ ? 'néhány másodperc'
17
+ : 'néhány másodperce';
19
18
  case 'ss':
20
- return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
19
+ return num + (isFuture || withoutSuffix)
20
+ ? ' másodperc'
21
+ : ' másodperce';
21
22
  case 'm':
22
23
  return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
23
24
  case 'mm':
@@ -42,70 +43,76 @@ function translate(number, withoutSuffix, key, isFuture) {
42
43
  return '';
43
44
  }
44
45
  function week(isFuture) {
45
- return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
46
+ return (
47
+ (isFuture ? '' : '[múlt] ') +
48
+ '[' +
49
+ weekEndings[this.day()] +
50
+ '] LT[-kor]'
51
+ );
46
52
  }
47
53
 
48
- var hu = moment.defineLocale('hu', {
49
- months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
50
- monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
51
- weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
52
- weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
53
- weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
54
- longDateFormat : {
55
- LT : 'H:mm',
56
- LTS : 'H:mm:ss',
57
- L : 'YYYY.MM.DD.',
58
- LL : 'YYYY. MMMM D.',
59
- LLL : 'YYYY. MMMM D. H:mm',
60
- LLLL : 'YYYY. MMMM D., dddd H:mm'
54
+ export default moment.defineLocale('hu', {
55
+ months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
56
+ '_'
57
+ ),
58
+ monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
59
+ '_'
60
+ ),
61
+ monthsParseExact: true,
62
+ weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
63
+ weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
64
+ weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
65
+ longDateFormat: {
66
+ LT: 'H:mm',
67
+ LTS: 'H:mm:ss',
68
+ L: 'YYYY.MM.DD.',
69
+ LL: 'YYYY. MMMM D.',
70
+ LLL: 'YYYY. MMMM D. H:mm',
71
+ LLLL: 'YYYY. MMMM D., dddd H:mm',
61
72
  },
62
73
  meridiemParse: /de|du/i,
63
74
  isPM: function (input) {
64
75
  return input.charAt(1).toLowerCase() === 'u';
65
76
  },
66
- meridiem : function (hours, minutes, isLower) {
77
+ meridiem: function (hours, minutes, isLower) {
67
78
  if (hours < 12) {
68
79
  return isLower === true ? 'de' : 'DE';
69
80
  } else {
70
81
  return isLower === true ? 'du' : 'DU';
71
82
  }
72
83
  },
73
- calendar : {
74
- sameDay : '[ma] LT[-kor]',
75
- nextDay : '[holnap] LT[-kor]',
76
- nextWeek : function () {
84
+ calendar: {
85
+ sameDay: '[ma] LT[-kor]',
86
+ nextDay: '[holnap] LT[-kor]',
87
+ nextWeek: function () {
77
88
  return week.call(this, true);
78
89
  },
79
- lastDay : '[tegnap] LT[-kor]',
80
- lastWeek : function () {
90
+ lastDay: '[tegnap] LT[-kor]',
91
+ lastWeek: function () {
81
92
  return week.call(this, false);
82
93
  },
83
- sameElse : 'L'
94
+ sameElse: 'L',
84
95
  },
85
- relativeTime : {
86
- future : '%s múlva',
87
- past : '%s',
88
- s : translate,
89
- ss : translate,
90
- m : translate,
91
- mm : translate,
92
- h : translate,
93
- hh : translate,
94
- d : translate,
95
- dd : translate,
96
- M : translate,
97
- MM : translate,
98
- y : translate,
99
- yy : translate
96
+ relativeTime: {
97
+ future: '%s múlva',
98
+ past: '%s',
99
+ s: translate,
100
+ ss: translate,
101
+ m: translate,
102
+ mm: translate,
103
+ h: translate,
104
+ hh: translate,
105
+ d: translate,
106
+ dd: translate,
107
+ M: translate,
108
+ MM: translate,
109
+ y: translate,
110
+ yy: translate,
100
111
  },
101
112
  dayOfMonthOrdinalParse: /\d{1,2}\./,
102
- ordinal : '%d.',
103
- week : {
104
- dow : 1, // Monday is the first day of the week.
105
- doy : 4 // The week that contains Jan 4th is the first week of the year.
106
- }
113
+ ordinal: '%d.',
114
+ week: {
115
+ dow: 1, // Monday is the first day of the week.
116
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
117
+ },
107
118
  });
108
-
109
- return hu;
110
-
111
- })));
@@ -2,32 +2,32 @@
2
2
  //! locale : Armenian [hy-am]
3
3
  //! author : Armendarabyan : https://github.com/armendarabyan
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 hyAm = moment.defineLocale('hy-am', {
14
- months : {
15
- format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
16
- standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
7
+ export default moment.defineLocale('hy-am', {
8
+ months: {
9
+ format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
10
+ '_'
11
+ ),
12
+ standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
13
+ '_'
14
+ ),
17
15
  },
18
- monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
19
- weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
20
- weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
21
- weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
22
- longDateFormat : {
23
- LT : 'HH:mm',
24
- LTS : 'HH:mm:ss',
25
- L : 'DD.MM.YYYY',
26
- LL : 'D MMMM YYYY թ.',
27
- LLL : 'D MMMM YYYY թ., HH:mm',
28
- LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
16
+ monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
17
+ weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
18
+ '_'
19
+ ),
20
+ weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
21
+ weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
22
+ longDateFormat: {
23
+ LT: 'HH:mm',
24
+ LTS: 'HH:mm:ss',
25
+ L: 'DD.MM.YYYY',
26
+ LL: 'D MMMM YYYY թ.',
27
+ LLL: 'D MMMM YYYY թ., HH:mm',
28
+ LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
29
29
  },
30
- calendar : {
30
+ calendar: {
31
31
  sameDay: '[այսօր] LT',
32
32
  nextDay: '[վաղը] LT',
33
33
  lastDay: '[երեկ] LT',
@@ -37,29 +37,29 @@ var hyAm = moment.defineLocale('hy-am', {
37
37
  lastWeek: function () {
38
38
  return '[անցած] dddd [օրը ժամը] LT';
39
39
  },
40
- sameElse: 'L'
40
+ sameElse: 'L',
41
41
  },
42
- relativeTime : {
43
- future : '%s հետո',
44
- past : '%s առաջ',
45
- s : 'մի քանի վայրկյան',
46
- ss : '%d վայրկյան',
47
- m : 'րոպե',
48
- mm : '%d րոպե',
49
- h : 'ժամ',
50
- hh : '%d ժամ',
51
- d : 'օր',
52
- dd : '%d օր',
53
- M : 'ամիս',
54
- MM : '%d ամիս',
55
- y : 'տարի',
56
- yy : '%d տարի'
42
+ relativeTime: {
43
+ future: '%s հետո',
44
+ past: '%s առաջ',
45
+ s: 'մի քանի վայրկյան',
46
+ ss: '%d վայրկյան',
47
+ m: 'րոպե',
48
+ mm: '%d րոպե',
49
+ h: 'ժամ',
50
+ hh: '%d ժամ',
51
+ d: 'օր',
52
+ dd: '%d օր',
53
+ M: 'ամիս',
54
+ MM: '%d ամիս',
55
+ y: 'տարի',
56
+ yy: '%d տարի',
57
57
  },
58
58
  meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
59
59
  isPM: function (input) {
60
60
  return /^(ցերեկվա|երեկոյան)$/.test(input);
61
61
  },
62
- meridiem : function (hour) {
62
+ meridiem: function (hour) {
63
63
  if (hour < 4) {
64
64
  return 'գիշերվա';
65
65
  } else if (hour < 12) {
@@ -85,12 +85,8 @@ var hyAm = moment.defineLocale('hy-am', {
85
85
  return number;
86
86
  }
87
87
  },
88
- week : {
89
- dow : 1, // Monday is the first day of the week.
90
- doy : 7 // The week that contains Jan 1st is the first week of the year.
91
- }
88
+ week: {
89
+ dow: 1, // Monday is the first day of the week.
90
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
91
+ },
92
92
  });
93
-
94
- return hyAm;
95
-
96
- })));