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
@@ -0,0 +1,124 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Konkani Devanagari script [gom-deva]
3
+ //! author : The Discoverer : https://github.com/WikiDiscoverer
4
+
5
+ import moment from '../moment';
6
+
7
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
8
+ var format = {
9
+ s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
10
+ ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
11
+ m: ['एका मिणटान', 'एक मिनूट'],
12
+ mm: [number + ' मिणटांनी', number + ' मिणटां'],
13
+ h: ['एका वरान', 'एक वर'],
14
+ hh: [number + ' वरांनी', number + ' वरां'],
15
+ d: ['एका दिसान', 'एक दीस'],
16
+ dd: [number + ' दिसांनी', number + ' दीस'],
17
+ M: ['एका म्हयन्यान', 'एक म्हयनो'],
18
+ MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
19
+ y: ['एका वर्सान', 'एक वर्स'],
20
+ yy: [number + ' वर्सांनी', number + ' वर्सां'],
21
+ };
22
+ return isFuture ? format[key][0] : format[key][1];
23
+ }
24
+
25
+ export default moment.defineLocale('gom-deva', {
26
+ months: {
27
+ standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
28
+ '_'
29
+ ),
30
+ format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
31
+ '_'
32
+ ),
33
+ isFormat: /MMMM(\s)+D[oD]?/,
34
+ },
35
+ monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
36
+ '_'
37
+ ),
38
+ monthsParseExact: true,
39
+ weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
40
+ weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
41
+ weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
42
+ weekdaysParseExact: true,
43
+ longDateFormat: {
44
+ LT: 'A h:mm [वाजतां]',
45
+ LTS: 'A h:mm:ss [वाजतां]',
46
+ L: 'DD-MM-YYYY',
47
+ LL: 'D MMMM YYYY',
48
+ LLL: 'D MMMM YYYY A h:mm [वाजतां]',
49
+ LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
50
+ llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
51
+ },
52
+ calendar: {
53
+ sameDay: '[आयज] LT',
54
+ nextDay: '[फाल्यां] LT',
55
+ nextWeek: '[फुडलो] dddd[,] LT',
56
+ lastDay: '[काल] LT',
57
+ lastWeek: '[फाटलो] dddd[,] LT',
58
+ sameElse: 'L',
59
+ },
60
+ relativeTime: {
61
+ future: '%s',
62
+ past: '%s आदीं',
63
+ s: processRelativeTime,
64
+ ss: processRelativeTime,
65
+ m: processRelativeTime,
66
+ mm: processRelativeTime,
67
+ h: processRelativeTime,
68
+ hh: processRelativeTime,
69
+ d: processRelativeTime,
70
+ dd: processRelativeTime,
71
+ M: processRelativeTime,
72
+ MM: processRelativeTime,
73
+ y: processRelativeTime,
74
+ yy: processRelativeTime,
75
+ },
76
+ dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
77
+ ordinal: function (number, period) {
78
+ switch (period) {
79
+ // the ordinal 'वेर' only applies to day of the month
80
+ case 'D':
81
+ return number + 'वेर';
82
+ default:
83
+ case 'M':
84
+ case 'Q':
85
+ case 'DDD':
86
+ case 'd':
87
+ case 'w':
88
+ case 'W':
89
+ return number;
90
+ }
91
+ },
92
+ week: {
93
+ dow: 0, // Sunday is the first day of the week
94
+ doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
95
+ },
96
+ meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
97
+ meridiemHour: function (hour, meridiem) {
98
+ if (hour === 12) {
99
+ hour = 0;
100
+ }
101
+ if (meridiem === 'राती') {
102
+ return hour < 4 ? hour : hour + 12;
103
+ } else if (meridiem === 'सकाळीं') {
104
+ return hour;
105
+ } else if (meridiem === 'दनपारां') {
106
+ return hour > 12 ? hour : hour + 12;
107
+ } else if (meridiem === 'सांजे') {
108
+ return hour + 12;
109
+ }
110
+ },
111
+ meridiem: function (hour, minute, isLower) {
112
+ if (hour < 4) {
113
+ return 'राती';
114
+ } else if (hour < 12) {
115
+ return 'सकाळीं';
116
+ } else if (hour < 16) {
117
+ return 'दनपारां';
118
+ } else if (hour < 20) {
119
+ return 'सांजे';
120
+ } else {
121
+ return 'राती';
122
+ }
123
+ },
124
+ });
@@ -2,75 +2,79 @@
2
2
  //! locale : Konkani Latin script [gom-latn]
3
3
  //! author : The Discoverer : https://github.com/WikiDiscoverer
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 processRelativeTime(number, withoutSuffix, key, isFuture) {
14
8
  var format = {
15
- 's': ['thodde secondanim', 'thodde second'],
16
- 'ss': [number + ' secondanim', number + ' second'],
17
- 'm': ['eka mintan', 'ek minute'],
18
- 'mm': [number + ' mintanim', number + ' mintam'],
19
- 'h': ['eka horan', 'ek hor'],
20
- 'hh': [number + ' horanim', number + ' hor'],
21
- 'd': ['eka disan', 'ek dis'],
22
- 'dd': [number + ' disanim', number + ' dis'],
23
- 'M': ['eka mhoinean', 'ek mhoino'],
24
- 'MM': [number + ' mhoineanim', number + ' mhoine'],
25
- 'y': ['eka vorsan', 'ek voros'],
26
- 'yy': [number + ' vorsanim', number + ' vorsam']
9
+ s: ['thoddea sekondamni', 'thodde sekond'],
10
+ ss: [number + ' sekondamni', number + ' sekond'],
11
+ m: ['eka mintan', 'ek minut'],
12
+ mm: [number + ' mintamni', number + ' mintam'],
13
+ h: ['eka voran', 'ek vor'],
14
+ hh: [number + ' voramni', number + ' voram'],
15
+ d: ['eka disan', 'ek dis'],
16
+ dd: [number + ' disamni', number + ' dis'],
17
+ M: ['eka mhoinean', 'ek mhoino'],
18
+ MM: [number + ' mhoineamni', number + ' mhoine'],
19
+ y: ['eka vorsan', 'ek voros'],
20
+ yy: [number + ' vorsamni', number + ' vorsam'],
27
21
  };
28
- return withoutSuffix ? format[key][0] : format[key][1];
22
+ return isFuture ? format[key][0] : format[key][1];
29
23
  }
30
24
 
31
- var gomLatn = moment.defineLocale('gom-latn', {
32
- months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
33
- monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
34
- monthsParseExact : true,
35
- weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
36
- weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
37
- weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
38
- weekdaysParseExact : true,
39
- longDateFormat : {
40
- LT : 'A h:mm [vazta]',
41
- LTS : 'A h:mm:ss [vazta]',
42
- L : 'DD-MM-YYYY',
43
- LL : 'D MMMM YYYY',
44
- LLL : 'D MMMM YYYY A h:mm [vazta]',
45
- LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
46
- llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
25
+ export default moment.defineLocale('gom-latn', {
26
+ months: {
27
+ standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
28
+ '_'
29
+ ),
30
+ format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
31
+ '_'
32
+ ),
33
+ isFormat: /MMMM(\s)+D[oD]?/,
34
+ },
35
+ monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
36
+ '_'
37
+ ),
38
+ monthsParseExact: true,
39
+ weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
40
+ weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
41
+ weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
42
+ weekdaysParseExact: true,
43
+ longDateFormat: {
44
+ LT: 'A h:mm [vazta]',
45
+ LTS: 'A h:mm:ss [vazta]',
46
+ L: 'DD-MM-YYYY',
47
+ LL: 'D MMMM YYYY',
48
+ LLL: 'D MMMM YYYY A h:mm [vazta]',
49
+ LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
50
+ llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
47
51
  },
48
- calendar : {
52
+ calendar: {
49
53
  sameDay: '[Aiz] LT',
50
54
  nextDay: '[Faleam] LT',
51
- nextWeek: '[Ieta to] dddd[,] LT',
55
+ nextWeek: '[Fuddlo] dddd[,] LT',
52
56
  lastDay: '[Kal] LT',
53
- lastWeek: '[Fatlo] dddd[,] LT',
54
- sameElse: 'L'
57
+ lastWeek: '[Fattlo] dddd[,] LT',
58
+ sameElse: 'L',
55
59
  },
56
- relativeTime : {
57
- future : '%s',
58
- past : '%s adim',
59
- s : processRelativeTime,
60
- ss : processRelativeTime,
61
- m : processRelativeTime,
62
- mm : processRelativeTime,
63
- h : processRelativeTime,
64
- hh : processRelativeTime,
65
- d : processRelativeTime,
66
- dd : processRelativeTime,
67
- M : processRelativeTime,
68
- MM : processRelativeTime,
69
- y : processRelativeTime,
70
- yy : processRelativeTime
60
+ relativeTime: {
61
+ future: '%s',
62
+ past: '%s adim',
63
+ s: processRelativeTime,
64
+ ss: processRelativeTime,
65
+ m: processRelativeTime,
66
+ mm: processRelativeTime,
67
+ h: processRelativeTime,
68
+ hh: processRelativeTime,
69
+ d: processRelativeTime,
70
+ dd: processRelativeTime,
71
+ M: processRelativeTime,
72
+ MM: processRelativeTime,
73
+ y: processRelativeTime,
74
+ yy: processRelativeTime,
71
75
  },
72
- dayOfMonthOrdinalParse : /\d{1,2}(er)/,
73
- ordinal : function (number, period) {
76
+ dayOfMonthOrdinalParse: /\d{1,2}(er)/,
77
+ ordinal: function (number, period) {
74
78
  switch (period) {
75
79
  // the ordinal 'er' only applies to day of the month
76
80
  case 'D':
@@ -85,18 +89,18 @@ var gomLatn = moment.defineLocale('gom-latn', {
85
89
  return number;
86
90
  }
87
91
  },
88
- week : {
89
- dow : 1, // Monday is the first day of the week.
90
- doy : 4 // The week that contains Jan 4th is the first week of the year.
92
+ week: {
93
+ dow: 0, // Sunday is the first day of the week
94
+ doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
91
95
  },
92
- meridiemParse: /rati|sokalli|donparam|sanje/,
93
- meridiemHour : function (hour, meridiem) {
96
+ meridiemParse: /rati|sokallim|donparam|sanje/,
97
+ meridiemHour: function (hour, meridiem) {
94
98
  if (hour === 12) {
95
99
  hour = 0;
96
100
  }
97
101
  if (meridiem === 'rati') {
98
102
  return hour < 4 ? hour : hour + 12;
99
- } else if (meridiem === 'sokalli') {
103
+ } else if (meridiem === 'sokallim') {
100
104
  return hour;
101
105
  } else if (meridiem === 'donparam') {
102
106
  return hour > 12 ? hour : hour + 12;
@@ -104,11 +108,11 @@ var gomLatn = moment.defineLocale('gom-latn', {
104
108
  return hour + 12;
105
109
  }
106
110
  },
107
- meridiem : function (hour, minute, isLower) {
111
+ meridiem: function (hour, minute, isLower) {
108
112
  if (hour < 4) {
109
113
  return 'rati';
110
114
  } else if (hour < 12) {
111
- return 'sokalli';
115
+ return 'sokallim';
112
116
  } else if (hour < 16) {
113
117
  return 'donparam';
114
118
  } else if (hour < 20) {
@@ -116,9 +120,5 @@ var gomLatn = moment.defineLocale('gom-latn', {
116
120
  } else {
117
121
  return 'rati';
118
122
  }
119
- }
123
+ },
120
124
  });
121
-
122
- return gomLatn;
123
-
124
- })));
@@ -2,27 +2,21 @@
2
2
  //! locale : Gujarati [gu]
3
3
  //! author : Kaushik Thanki : https://github.com/Kaushik1987
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 = {
8
+ 1: '૧',
9
+ 2: '૨',
10
+ 3: '૩',
11
+ 4: '૪',
12
+ 5: '૫',
13
+ 6: '૬',
14
+ 7: '૭',
15
+ 8: '૮',
16
+ 9: '૯',
17
+ 0: '૦',
18
+ },
19
+ numberMap = {
26
20
  '૧': '1',
27
21
  '૨': '2',
28
22
  '૩': '3',
@@ -32,14 +26,20 @@ var numberMap = {
32
26
  '૭': '7',
33
27
  '૮': '8',
34
28
  '૯': '9',
35
- '૦': '0'
29
+ '૦': '0',
36
30
  };
37
31
 
38
- var gu = moment.defineLocale('gu', {
39
- months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
40
- monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
32
+ export default moment.defineLocale('gu', {
33
+ months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
37
+ '_'
38
+ ),
41
39
  monthsParseExact: true,
42
- weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
40
+ weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
41
+ '_'
42
+ ),
43
43
  weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
44
44
  weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
45
45
  longDateFormat: {
@@ -48,7 +48,7 @@ var gu = moment.defineLocale('gu', {
48
48
  L: 'DD/MM/YYYY',
49
49
  LL: 'D MMMM YYYY',
50
50
  LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
51
- LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
51
+ LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
52
52
  },
53
53
  calendar: {
54
54
  sameDay: '[આજ] LT',
@@ -56,11 +56,11 @@ var gu = moment.defineLocale('gu', {
56
56
  nextWeek: 'dddd, LT',
57
57
  lastDay: '[ગઇકાલે] LT',
58
58
  lastWeek: '[પાછલા] dddd, LT',
59
- sameElse: 'L'
59
+ sameElse: 'L',
60
60
  },
61
61
  relativeTime: {
62
62
  future: '%s મા',
63
- past: '%s પેહલા',
63
+ past: '%s પહેલા',
64
64
  s: 'અમુક પળો',
65
65
  ss: '%d સેકંડ',
66
66
  m: 'એક મિનિટ',
@@ -72,7 +72,7 @@ var gu = moment.defineLocale('gu', {
72
72
  M: 'એક મહિનો',
73
73
  MM: '%d મહિનો',
74
74
  y: 'એક વર્ષ',
75
- yy: '%d વર્ષ'
75
+ yy: '%d વર્ષ',
76
76
  },
77
77
  preparse: function (string) {
78
78
  return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
@@ -116,10 +116,6 @@ var gu = moment.defineLocale('gu', {
116
116
  },
117
117
  week: {
118
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
- }
119
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
120
+ },
121
121
  });
122
-
123
- return gu;
124
-
125
- })));
@@ -4,83 +4,81 @@
4
4
  //! author : Moshe Simantov : https://github.com/DevelopmentIL
5
5
  //! author : Tal Ater : https://github.com/TalAter
6
6
 
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';
7
+ import moment from '../moment';
13
8
 
14
-
15
- var he = moment.defineLocale('he', {
16
- months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
17
- monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
18
- weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
19
- weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
20
- weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
21
- longDateFormat : {
22
- LT : 'HH:mm',
23
- LTS : 'HH:mm:ss',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D [ב]MMMM YYYY',
26
- LLL : 'D [ב]MMMM YYYY HH:mm',
27
- LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
28
- l : 'D/M/YYYY',
29
- ll : 'D MMM YYYY',
30
- lll : 'D MMM YYYY HH:mm',
31
- llll : 'ddd, D MMM YYYY HH:mm'
9
+ export default moment.defineLocale('he', {
10
+ months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
11
+ '_'
12
+ ),
13
+ monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
14
+ '_'
15
+ ),
16
+ weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
17
+ weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
18
+ weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.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',
26
+ l: 'D/M/YYYY',
27
+ ll: 'D MMM YYYY',
28
+ lll: 'D MMM YYYY HH:mm',
29
+ llll: 'ddd, D MMM YYYY HH:mm',
32
30
  },
33
- calendar : {
34
- sameDay : '[היום ב־]LT',
35
- nextDay : '[מחר ב־]LT',
36
- nextWeek : 'dddd [בשעה] LT',
37
- lastDay : '[אתמול ב־]LT',
38
- lastWeek : '[ביום] dddd [האחרון בשעה] LT',
39
- sameElse : 'L'
31
+ calendar: {
32
+ sameDay: '[היום ב־]LT',
33
+ nextDay: '[מחר ב־]LT',
34
+ nextWeek: 'dddd [בשעה] LT',
35
+ lastDay: '[אתמול ב־]LT',
36
+ lastWeek: '[ביום] dddd [האחרון בשעה] LT',
37
+ sameElse: 'L',
40
38
  },
41
- relativeTime : {
42
- future : 'בעוד %s',
43
- past : 'לפני %s',
44
- s : 'מספר שניות',
45
- ss : '%d שניות',
46
- m : 'דקה',
47
- mm : '%d דקות',
48
- h : 'שעה',
49
- hh : function (number) {
39
+ relativeTime: {
40
+ future: 'בעוד %s',
41
+ past: 'לפני %s',
42
+ s: 'מספר שניות',
43
+ ss: '%d שניות',
44
+ m: 'דקה',
45
+ mm: '%d דקות',
46
+ h: 'שעה',
47
+ hh: function (number) {
50
48
  if (number === 2) {
51
49
  return 'שעתיים';
52
50
  }
53
51
  return number + ' שעות';
54
52
  },
55
- d : 'יום',
56
- dd : function (number) {
53
+ d: 'יום',
54
+ dd: function (number) {
57
55
  if (number === 2) {
58
56
  return 'יומיים';
59
57
  }
60
58
  return number + ' ימים';
61
59
  },
62
- M : 'חודש',
63
- MM : function (number) {
60
+ M: 'חודש',
61
+ MM: function (number) {
64
62
  if (number === 2) {
65
63
  return 'חודשיים';
66
64
  }
67
65
  return number + ' חודשים';
68
66
  },
69
- y : 'שנה',
70
- yy : function (number) {
67
+ y: 'שנה',
68
+ yy: function (number) {
71
69
  if (number === 2) {
72
70
  return 'שנתיים';
73
71
  } else if (number % 10 === 0 && number !== 10) {
74
72
  return number + ' שנה';
75
73
  }
76
74
  return number + ' שנים';
77
- }
75
+ },
78
76
  },
79
77
  meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
80
- isPM : function (input) {
78
+ isPM: function (input) {
81
79
  return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
82
80
  },
83
- meridiem : function (hour, minute, isLower) {
81
+ meridiem: function (hour, minute, isLower) {
84
82
  if (hour < 5) {
85
83
  return 'לפנות בוקר';
86
84
  } else if (hour < 10) {
@@ -92,9 +90,5 @@ var he = moment.defineLocale('he', {
92
90
  } else {
93
91
  return 'בערב';
94
92
  }
95
- }
93
+ },
96
94
  });
97
-
98
- return he;
99
-
100
- })));