momentjs-rails 2.15.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +1 -1
  3. data/news.md +12 -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/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
  50. data/test/integration/navigation_test.rb +1 -1
  51. data/vendor/assets/javascripts/moment/af.js +53 -44
  52. data/vendor/assets/javascripts/moment/ar-dz.js +167 -0
  53. data/vendor/assets/javascripts/moment/ar-kw.js +65 -0
  54. data/vendor/assets/javascripts/moment/ar-ly.js +145 -85
  55. data/vendor/assets/javascripts/moment/ar-ma.js +43 -37
  56. data/vendor/assets/javascripts/moment/ar-sa.js +78 -67
  57. data/vendor/assets/javascripts/moment/ar-tn.js +18 -12
  58. data/vendor/assets/javascripts/moment/ar.js +159 -96
  59. data/vendor/assets/javascripts/moment/az.js +54 -47
  60. data/vendor/assets/javascripts/moment/be.js +71 -53
  61. data/vendor/assets/javascripts/moment/bg.js +51 -43
  62. data/vendor/assets/javascripts/moment/bm.js +62 -0
  63. data/vendor/assets/javascripts/moment/bn-bd.js +139 -0
  64. data/vendor/assets/javascripts/moment/bn.js +77 -67
  65. data/vendor/assets/javascripts/moment/bo.js +81 -67
  66. data/vendor/assets/javascripts/moment/br.js +117 -49
  67. data/vendor/assets/javascripts/moment/bs.js +59 -42
  68. data/vendor/assets/javascripts/moment/ca.js +79 -52
  69. data/vendor/assets/javascripts/moment/cs.js +88 -78
  70. data/vendor/assets/javascripts/moment/cv.js +47 -37
  71. data/vendor/assets/javascripts/moment/cy.js +44 -17
  72. data/vendor/assets/javascripts/moment/da.js +45 -41
  73. data/vendor/assets/javascripts/moment/de-at.js +57 -46
  74. data/vendor/assets/javascripts/moment/de-ch.js +87 -0
  75. data/vendor/assets/javascripts/moment/de.js +55 -44
  76. data/vendor/assets/javascripts/moment/dv.js +65 -63
  77. data/vendor/assets/javascripts/moment/el.js +68 -51
  78. data/vendor/assets/javascripts/moment/en-au.js +59 -47
  79. data/vendor/assets/javascripts/moment/en-ca.js +56 -44
  80. data/vendor/assets/javascripts/moment/en-gb.js +59 -47
  81. data/vendor/assets/javascripts/moment/en-ie.js +59 -47
  82. data/vendor/assets/javascripts/moment/en-il.js +75 -0
  83. data/vendor/assets/javascripts/moment/en-in.js +79 -0
  84. data/vendor/assets/javascripts/moment/en-nz.js +59 -47
  85. data/vendor/assets/javascripts/moment/en-sg.js +79 -0
  86. data/vendor/assets/javascripts/moment/eo.js +50 -44
  87. data/vendor/assets/javascripts/moment/es-do.js +88 -53
  88. data/vendor/assets/javascripts/moment/es-mx.js +117 -0
  89. data/vendor/assets/javascripts/moment/es-us.js +117 -0
  90. data/vendor/assets/javascripts/moment/es.js +87 -51
  91. data/vendor/assets/javascripts/moment/et.js +60 -51
  92. data/vendor/assets/javascripts/moment/eu.js +55 -47
  93. data/vendor/assets/javascripts/moment/fa.js +86 -71
  94. data/vendor/assets/javascripts/moment/fi.js +74 -49
  95. data/vendor/assets/javascripts/moment/fil.js +69 -0
  96. data/vendor/assets/javascripts/moment/fo.js +48 -41
  97. data/vendor/assets/javascripts/moment/fr-ca.js +59 -39
  98. data/vendor/assets/javascripts/moment/fr-ch.js +62 -42
  99. data/vendor/assets/javascripts/moment/fr.js +91 -40
  100. data/vendor/assets/javascripts/moment/fy.js +57 -42
  101. data/vendor/assets/javascripts/moment/ga.js +106 -0
  102. data/vendor/assets/javascripts/moment/gd.js +82 -52
  103. data/vendor/assets/javascripts/moment/gl.js +55 -47
  104. data/vendor/assets/javascripts/moment/gom-deva.js +135 -0
  105. data/vendor/assets/javascripts/moment/gom-latn.js +135 -0
  106. data/vendor/assets/javascripts/moment/gu.js +132 -0
  107. data/vendor/assets/javascripts/moment/he.js +49 -43
  108. data/vendor/assets/javascripts/moment/hi.js +116 -65
  109. data/vendor/assets/javascripts/moment/hr.js +65 -45
  110. data/vendor/assets/javascripts/moment/hu.js +67 -47
  111. data/vendor/assets/javascripts/moment/hy-am.js +48 -40
  112. data/vendor/assets/javascripts/moment/id.js +45 -41
  113. data/vendor/assets/javascripts/moment/is.js +67 -44
  114. data/vendor/assets/javascripts/moment/it-ch.js +75 -0
  115. data/vendor/assets/javascripts/moment/it.js +90 -43
  116. data/vendor/assets/javascripts/moment/ja.js +123 -40
  117. data/vendor/assets/javascripts/moment/jv.js +46 -42
  118. data/vendor/assets/javascripts/moment/ka.js +68 -54
  119. data/vendor/assets/javascripts/moment/kk.js +48 -42
  120. data/vendor/assets/javascripts/moment/km.js +67 -12
  121. data/vendor/assets/javascripts/moment/kn.js +134 -0
  122. data/vendor/assets/javascripts/moment/ko.js +63 -42
  123. data/vendor/assets/javascripts/moment/ku.js +129 -0
  124. data/vendor/assets/javascripts/moment/ky.js +50 -43
  125. data/vendor/assets/javascripts/moment/lb.js +41 -32
  126. data/vendor/assets/javascripts/moment/lo.js +46 -40
  127. data/vendor/assets/javascripts/moment/lt.js +81 -64
  128. data/vendor/assets/javascripts/moment/lv.js +59 -52
  129. data/vendor/assets/javascripts/moment/me.js +56 -38
  130. data/vendor/assets/javascripts/moment/mi.js +18 -12
  131. data/vendor/assets/javascripts/moment/mk.js +48 -41
  132. data/vendor/assets/javascripts/moment/ml.js +52 -42
  133. data/vendor/assets/javascripts/moment/mn.js +110 -0
  134. data/vendor/assets/javascripts/moment/mr.js +142 -88
  135. data/vendor/assets/javascripts/moment/ms-my.js +46 -42
  136. data/vendor/assets/javascripts/moment/ms.js +44 -40
  137. data/vendor/assets/javascripts/moment/mt.js +66 -0
  138. data/vendor/assets/javascripts/moment/my.js +38 -31
  139. data/vendor/assets/javascripts/moment/nb.js +47 -38
  140. data/vendor/assets/javascripts/moment/ne.js +74 -66
  141. data/vendor/assets/javascripts/moment/nl-be.js +113 -0
  142. data/vendor/assets/javascripts/moment/nl.js +77 -48
  143. data/vendor/assets/javascripts/moment/nn.js +48 -37
  144. data/vendor/assets/javascripts/moment/oc-lnc.js +94 -0
  145. data/vendor/assets/javascripts/moment/pa-in.js +75 -67
  146. data/vendor/assets/javascripts/moment/pl.js +91 -46
  147. data/vendor/assets/javascripts/moment/pt-br.js +45 -38
  148. data/vendor/assets/javascripts/moment/pt.js +48 -40
  149. data/vendor/assets/javascripts/moment/ro.js +50 -39
  150. data/vendor/assets/javascripts/moment/ru.js +106 -72
  151. data/vendor/assets/javascripts/moment/sd.js +92 -0
  152. data/vendor/assets/javascripts/moment/se.js +44 -37
  153. data/vendor/assets/javascripts/moment/si.js +50 -42
  154. data/vendor/assets/javascripts/moment/sk.js +59 -54
  155. data/vendor/assets/javascripts/moment/sl.js +62 -43
  156. data/vendor/assets/javascripts/moment/sq.js +49 -43
  157. data/vendor/assets/javascripts/moment/sr-cyrl.js +58 -41
  158. data/vendor/assets/javascripts/moment/sr.js +59 -40
  159. data/vendor/assets/javascripts/moment/ss.js +50 -45
  160. data/vendor/assets/javascripts/moment/sv.js +52 -42
  161. data/vendor/assets/javascripts/moment/sw.js +46 -40
  162. data/vendor/assets/javascripts/moment/ta.js +77 -66
  163. data/vendor/assets/javascripts/moment/te.js +52 -44
  164. data/vendor/assets/javascripts/moment/tet.js +79 -0
  165. data/vendor/assets/javascripts/moment/tg.js +127 -0
  166. data/vendor/assets/javascripts/moment/th.js +46 -38
  167. data/vendor/assets/javascripts/moment/tk.js +102 -0
  168. data/vendor/assets/javascripts/moment/tl-ph.js +49 -43
  169. data/vendor/assets/javascripts/moment/tlh.js +73 -57
  170. data/vendor/assets/javascripts/moment/tr.js +92 -65
  171. data/vendor/assets/javascripts/moment/tzl.js +67 -58
  172. data/vendor/assets/javascripts/moment/tzm-latn.js +42 -36
  173. data/vendor/assets/javascripts/moment/tzm.js +39 -33
  174. data/vendor/assets/javascripts/moment/ug-cn.js +121 -0
  175. data/vendor/assets/javascripts/moment/uk.js +85 -57
  176. data/vendor/assets/javascripts/moment/ur.js +93 -0
  177. data/vendor/assets/javascripts/moment/uz-latn.js +64 -0
  178. data/vendor/assets/javascripts/moment/uz.js +43 -39
  179. data/vendor/assets/javascripts/moment/vi.js +56 -45
  180. data/vendor/assets/javascripts/moment/x-pseudo.js +62 -48
  181. data/vendor/assets/javascripts/moment/yo.js +64 -0
  182. data/vendor/assets/javascripts/moment/zh-cn.js +68 -64
  183. data/vendor/assets/javascripts/moment/zh-hk.js +62 -55
  184. data/vendor/assets/javascripts/moment/zh-mo.js +111 -0
  185. data/vendor/assets/javascripts/moment/zh-tw.js +59 -53
  186. data/vendor/assets/javascripts/moment.js +2865 -1429
  187. metadata +127 -23
  188. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  189. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  190. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  191. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  192. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  193. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -8,42 +8,63 @@
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
9
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
- }(this, function (moment) { 'use strict';
11
+ }(this, (function (moment) { 'use strict';
12
12
 
13
+ //! moment.js locale configuration
13
14
 
14
15
  function plural(word, num) {
15
16
  var forms = word.split('_');
16
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
17
+ return num % 10 === 1 && num % 100 !== 11
18
+ ? forms[0]
19
+ : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
20
+ ? forms[1]
21
+ : forms[2];
17
22
  }
18
23
  function relativeTimeWithPlural(number, withoutSuffix, key) {
19
24
  var format = {
20
- 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
21
- 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
22
- 'dd': 'день_дні_днів',
23
- 'MM': 'місяць_місяці_місяців',
24
- 'yy': 'рік_роки_років'
25
+ ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
26
+ mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
27
+ hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
28
+ dd: 'день_дні_днів',
29
+ MM: 'місяць_місяці_місяців',
30
+ yy: 'рік_роки_років',
25
31
  };
26
32
  if (key === 'm') {
27
33
  return withoutSuffix ? 'хвилина' : 'хвилину';
28
- }
29
- else if (key === 'h') {
34
+ } else if (key === 'h') {
30
35
  return withoutSuffix ? 'година' : 'годину';
31
- }
32
- else {
36
+ } else {
33
37
  return number + ' ' + plural(format[key], +number);
34
38
  }
35
39
  }
36
40
  function weekdaysCaseReplace(m, format) {
37
41
  var weekdays = {
38
- 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
39
- 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
40
- 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
41
- },
42
- nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
43
- 'accusative' :
44
- ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
45
- 'genitive' :
46
- 'nominative');
42
+ nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
43
+ '_'
44
+ ),
45
+ accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
46
+ '_'
47
+ ),
48
+ genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
49
+ '_'
50
+ ),
51
+ },
52
+ nounCase;
53
+
54
+ if (m === true) {
55
+ return weekdays['nominative']
56
+ .slice(1, 7)
57
+ .concat(weekdays['nominative'].slice(0, 1));
58
+ }
59
+ if (!m) {
60
+ return weekdays['nominative'];
61
+ }
62
+
63
+ nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
64
+ ? 'accusative'
65
+ : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
66
+ ? 'genitive'
67
+ : 'nominative';
47
68
  return weekdays[nounCase][m.day()];
48
69
  }
49
70
  function processHoursFunction(str) {
@@ -53,23 +74,29 @@
53
74
  }
54
75
 
55
76
  var uk = moment.defineLocale('uk', {
56
- months : {
57
- 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
58
- 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
77
+ months: {
78
+ format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
79
+ '_'
80
+ ),
81
+ standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
82
+ '_'
83
+ ),
59
84
  },
60
- monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
61
- weekdays : weekdaysCaseReplace,
62
- weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
63
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
64
- longDateFormat : {
65
- LT : 'HH:mm',
66
- LTS : 'HH:mm:ss',
67
- L : 'DD.MM.YYYY',
68
- LL : 'D MMMM YYYY р.',
69
- LLL : 'D MMMM YYYY р., HH:mm',
70
- LLLL : 'dddd, D MMMM YYYY р., HH:mm'
85
+ monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
86
+ '_'
87
+ ),
88
+ weekdays: weekdaysCaseReplace,
89
+ weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
90
+ weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
91
+ longDateFormat: {
92
+ LT: 'HH:mm',
93
+ LTS: 'HH:mm:ss',
94
+ L: 'DD.MM.YYYY',
95
+ LL: 'D MMMM YYYY р.',
96
+ LLL: 'D MMMM YYYY р., HH:mm',
97
+ LLLL: 'dddd, D MMMM YYYY р., HH:mm',
71
98
  },
72
- calendar : {
99
+ calendar: {
73
100
  sameDay: processHoursFunction('[Сьогодні '),
74
101
  nextDay: processHoursFunction('[Завтра '),
75
102
  lastDay: processHoursFunction('[Вчора '),
@@ -87,29 +114,30 @@
87
114
  return processHoursFunction('[Минулого] dddd [').call(this);
88
115
  }
89
116
  },
90
- sameElse: 'L'
117
+ sameElse: 'L',
91
118
  },
92
- relativeTime : {
93
- future : 'за %s',
94
- past : '%s тому',
95
- s : 'декілька секунд',
96
- m : relativeTimeWithPlural,
97
- mm : relativeTimeWithPlural,
98
- h : 'годину',
99
- hh : relativeTimeWithPlural,
100
- d : 'день',
101
- dd : relativeTimeWithPlural,
102
- M : 'місяць',
103
- MM : relativeTimeWithPlural,
104
- y : 'рік',
105
- yy : relativeTimeWithPlural
119
+ relativeTime: {
120
+ future: 'за %s',
121
+ past: '%s тому',
122
+ s: 'декілька секунд',
123
+ ss: relativeTimeWithPlural,
124
+ m: relativeTimeWithPlural,
125
+ mm: relativeTimeWithPlural,
126
+ h: 'годину',
127
+ hh: relativeTimeWithPlural,
128
+ d: 'день',
129
+ dd: relativeTimeWithPlural,
130
+ M: 'місяць',
131
+ MM: relativeTimeWithPlural,
132
+ y: 'рік',
133
+ yy: relativeTimeWithPlural,
106
134
  },
107
135
  // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
108
136
  meridiemParse: /ночі|ранку|дня|вечора/,
109
137
  isPM: function (input) {
110
138
  return /^(дня|вечора)$/.test(input);
111
139
  },
112
- meridiem : function (hour, minute, isLower) {
140
+ meridiem: function (hour, minute, isLower) {
113
141
  if (hour < 4) {
114
142
  return 'ночі';
115
143
  } else if (hour < 12) {
@@ -120,7 +148,7 @@
120
148
  return 'вечора';
121
149
  }
122
150
  },
123
- ordinalParse: /\d{1,2}-(й|го)/,
151
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
124
152
  ordinal: function (number, period) {
125
153
  switch (period) {
126
154
  case 'M':
@@ -135,12 +163,12 @@
135
163
  return number;
136
164
  }
137
165
  },
138
- week : {
139
- dow : 1, // Monday is the first day of the week.
140
- doy : 7 // The week that contains Jan 1st is the first week of the year.
141
- }
166
+ week: {
167
+ dow: 1, // Monday is the first day of the week.
168
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
169
+ },
142
170
  });
143
171
 
144
172
  return uk;
145
173
 
146
- }));
174
+ })));
@@ -0,0 +1,93 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Urdu [ur]
3
+ //! author : Sawood Alam : https://github.com/ibnesayeed
4
+ //! author : Zack : https://github.com/ZackVision
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
+
13
+ //! moment.js locale configuration
14
+
15
+ var months = [
16
+ 'جنوری',
17
+ 'فروری',
18
+ 'مارچ',
19
+ 'اپریل',
20
+ 'مئی',
21
+ 'جون',
22
+ 'جولائی',
23
+ 'اگست',
24
+ 'ستمبر',
25
+ 'اکتوبر',
26
+ 'نومبر',
27
+ 'دسمبر',
28
+ ],
29
+ days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
30
+
31
+ var ur = moment.defineLocale('ur', {
32
+ months: months,
33
+ monthsShort: months,
34
+ weekdays: days,
35
+ weekdaysShort: days,
36
+ weekdaysMin: days,
37
+ longDateFormat: {
38
+ LT: 'HH:mm',
39
+ LTS: 'HH:mm:ss',
40
+ L: 'DD/MM/YYYY',
41
+ LL: 'D MMMM YYYY',
42
+ LLL: 'D MMMM YYYY HH:mm',
43
+ LLLL: 'dddd، D MMMM YYYY HH:mm',
44
+ },
45
+ meridiemParse: /صبح|شام/,
46
+ isPM: function (input) {
47
+ return 'شام' === input;
48
+ },
49
+ meridiem: function (hour, minute, isLower) {
50
+ if (hour < 12) {
51
+ return 'صبح';
52
+ }
53
+ return 'شام';
54
+ },
55
+ calendar: {
56
+ sameDay: '[آج بوقت] LT',
57
+ nextDay: '[کل بوقت] LT',
58
+ nextWeek: 'dddd [بوقت] LT',
59
+ lastDay: '[گذشتہ روز بوقت] LT',
60
+ lastWeek: '[گذشتہ] dddd [بوقت] LT',
61
+ sameElse: 'L',
62
+ },
63
+ relativeTime: {
64
+ future: '%s بعد',
65
+ past: '%s قبل',
66
+ s: 'چند سیکنڈ',
67
+ ss: '%d سیکنڈ',
68
+ m: 'ایک منٹ',
69
+ mm: '%d منٹ',
70
+ h: 'ایک گھنٹہ',
71
+ hh: '%d گھنٹے',
72
+ d: 'ایک دن',
73
+ dd: '%d دن',
74
+ M: 'ایک ماہ',
75
+ MM: '%d ماہ',
76
+ y: 'ایک سال',
77
+ yy: '%d سال',
78
+ },
79
+ preparse: function (string) {
80
+ return string.replace(/،/g, ',');
81
+ },
82
+ postformat: function (string) {
83
+ return string.replace(/,/g, '،');
84
+ },
85
+ week: {
86
+ dow: 1, // Monday is the first day of the week.
87
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
88
+ },
89
+ });
90
+
91
+ return ur;
92
+
93
+ })));
@@ -0,0 +1,64 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Uzbek Latin [uz-latn]
3
+ //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
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
+
12
+ //! moment.js locale configuration
13
+
14
+ var uzLatn = moment.defineLocale('uz-latn', {
15
+ months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
19
+ weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
20
+ '_'
21
+ ),
22
+ weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
23
+ weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
24
+ longDateFormat: {
25
+ LT: 'HH:mm',
26
+ LTS: 'HH:mm:ss',
27
+ L: 'DD/MM/YYYY',
28
+ LL: 'D MMMM YYYY',
29
+ LLL: 'D MMMM YYYY HH:mm',
30
+ LLLL: 'D MMMM YYYY, dddd HH:mm',
31
+ },
32
+ calendar: {
33
+ sameDay: '[Bugun soat] LT [da]',
34
+ nextDay: '[Ertaga] LT [da]',
35
+ nextWeek: 'dddd [kuni soat] LT [da]',
36
+ lastDay: '[Kecha soat] LT [da]',
37
+ lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
38
+ sameElse: 'L',
39
+ },
40
+ relativeTime: {
41
+ future: 'Yaqin %s ichida',
42
+ past: 'Bir necha %s oldin',
43
+ s: 'soniya',
44
+ ss: '%d soniya',
45
+ m: 'bir daqiqa',
46
+ mm: '%d daqiqa',
47
+ h: 'bir soat',
48
+ hh: '%d soat',
49
+ d: 'bir kun',
50
+ dd: '%d kun',
51
+ M: 'bir oy',
52
+ MM: '%d oy',
53
+ y: 'bir yil',
54
+ yy: '%d yil',
55
+ },
56
+ week: {
57
+ dow: 1, // Monday is the first day of the week.
58
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
59
+ },
60
+ });
61
+
62
+ return uzLatn;
63
+
64
+ })));
@@ -7,52 +7,56 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
+ //! moment.js locale configuration
12
13
 
13
14
  var uz = moment.defineLocale('uz', {
14
- months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
15
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
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 : 'D MMMM YYYY, dddd HH:mm'
15
+ months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
16
+ '_'
17
+ ),
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: 'D MMMM YYYY, dddd HH:mm',
26
29
  },
27
- calendar : {
28
- sameDay : '[Бугун соат] LT [да]',
29
- nextDay : '[Эртага] LT [да]',
30
- nextWeek : 'dddd [куни соат] LT [да]',
31
- lastDay : '[Кеча соат] LT [да]',
32
- lastWeek : '[Утган] dddd [куни соат] LT [да]',
33
- sameElse : 'L'
30
+ calendar: {
31
+ sameDay: '[Бугун соат] LT [да]',
32
+ nextDay: '[Эртага] LT [да]',
33
+ nextWeek: 'dddd [куни соат] LT [да]',
34
+ lastDay: '[Кеча соат] LT [да]',
35
+ lastWeek: '[Утган] dddd [куни соат] LT [да]',
36
+ sameElse: 'L',
34
37
  },
35
- relativeTime : {
36
- future : 'Якин %s ичида',
37
- past : 'Бир неча %s олдин',
38
- s : 'фурсат',
39
- m : 'бир дакика',
40
- mm : '%d дакика',
41
- h : 'бир соат',
42
- hh : '%d соат',
43
- d : 'бир кун',
44
- dd : '%d кун',
45
- M : 'бир ой',
46
- MM : '%d ой',
47
- y : 'бир йил',
48
- yy : '%d йил'
38
+ relativeTime: {
39
+ future: 'Якин %s ичида',
40
+ past: 'Бир неча %s олдин',
41
+ s: 'фурсат',
42
+ ss: '%d фурсат',
43
+ m: 'бир дакика',
44
+ mm: '%d дакика',
45
+ h: 'бир соат',
46
+ hh: '%d соат',
47
+ d: 'бир кун',
48
+ dd: '%d кун',
49
+ M: 'бир ой',
50
+ MM: '%d ой',
51
+ y: 'бир йил',
52
+ yy: '%d йил',
53
+ },
54
+ week: {
55
+ dow: 1, // Monday is the first day of the week.
56
+ doy: 7, // The week that contains Jan 4th is the first week of the year.
49
57
  },
50
- week : {
51
- dow : 1, // Monday is the first day of the week.
52
- doy : 7 // The week that contains Jan 4th is the first week of the year.
53
- }
54
58
  });
55
59
 
56
60
  return uz;
57
61
 
58
- }));
62
+ })));
@@ -1,79 +1,90 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Vietnamese [vi]
3
3
  //! author : Bang Nguyen : https://github.com/bangnk
4
+ //! author : Chien Kira : https://github.com/chienkira
4
5
 
5
6
  ;(function (global, factory) {
6
7
  typeof exports === 'object' && typeof module !== 'undefined'
7
8
  && typeof require === 'function' ? factory(require('../moment')) :
8
9
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
10
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
11
+ }(this, (function (moment) { 'use strict';
11
12
 
13
+ //! moment.js locale configuration
12
14
 
13
15
  var vi = moment.defineLocale('vi', {
14
- months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
15
- monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
16
- monthsParseExact : true,
17
- weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18
- weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19
- weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20
- weekdaysParseExact : true,
16
+ months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
17
+ '_'
18
+ ),
19
+ monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
20
+ '_'
21
+ ),
22
+ monthsParseExact: true,
23
+ weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
24
+ '_'
25
+ ),
26
+ weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
27
+ weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
28
+ weekdaysParseExact: true,
21
29
  meridiemParse: /sa|ch/i,
22
- isPM : function (input) {
30
+ isPM: function (input) {
23
31
  return /^ch$/i.test(input);
24
32
  },
25
- meridiem : function (hours, minutes, isLower) {
33
+ meridiem: function (hours, minutes, isLower) {
26
34
  if (hours < 12) {
27
35
  return isLower ? 'sa' : 'SA';
28
36
  } else {
29
37
  return isLower ? 'ch' : 'CH';
30
38
  }
31
39
  },
32
- longDateFormat : {
33
- LT : 'HH:mm',
34
- LTS : 'HH:mm:ss',
35
- L : 'DD/MM/YYYY',
36
- LL : 'D MMMM [năm] YYYY',
37
- LLL : 'D MMMM [năm] YYYY HH:mm',
38
- LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
39
- l : 'DD/M/YYYY',
40
- ll : 'D MMM YYYY',
41
- lll : 'D MMM YYYY HH:mm',
42
- llll : 'ddd, D MMM YYYY HH:mm'
40
+ longDateFormat: {
41
+ LT: 'HH:mm',
42
+ LTS: 'HH:mm:ss',
43
+ L: 'DD/MM/YYYY',
44
+ LL: 'D MMMM [năm] YYYY',
45
+ LLL: 'D MMMM [năm] YYYY HH:mm',
46
+ LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
47
+ l: 'DD/M/YYYY',
48
+ ll: 'D MMM YYYY',
49
+ lll: 'D MMM YYYY HH:mm',
50
+ llll: 'ddd, D MMM YYYY HH:mm',
43
51
  },
44
- calendar : {
52
+ calendar: {
45
53
  sameDay: '[Hôm nay lúc] LT',
46
54
  nextDay: '[Ngày mai lúc] LT',
47
55
  nextWeek: 'dddd [tuần tới lúc] LT',
48
56
  lastDay: '[Hôm qua lúc] LT',
49
- lastWeek: 'dddd [tuần rồi lúc] LT',
50
- sameElse: 'L'
57
+ lastWeek: 'dddd [tuần trước lúc] LT',
58
+ sameElse: 'L',
51
59
  },
52
- relativeTime : {
53
- future : '%s tới',
54
- past : '%s trước',
55
- s : 'vài giây',
56
- m : 'một phút',
57
- mm : '%d phút',
58
- h : 'một giờ',
59
- hh : '%d giờ',
60
- d : 'một ngày',
61
- dd : '%d ngày',
62
- M : 'một tháng',
63
- MM : '%d tháng',
64
- y : 'một năm',
65
- yy : '%d năm'
60
+ relativeTime: {
61
+ future: '%s tới',
62
+ past: '%s trước',
63
+ s: 'vài giây',
64
+ ss: '%d giây',
65
+ m: 'một phút',
66
+ mm: '%d phút',
67
+ h: 'một giờ',
68
+ hh: '%d giờ',
69
+ d: 'một ngày',
70
+ dd: '%d ngày',
71
+ w: 'một tuần',
72
+ ww: '%d tuần',
73
+ M: 'một tháng',
74
+ MM: '%d tháng',
75
+ y: 'một năm',
76
+ yy: '%d năm',
66
77
  },
67
- ordinalParse: /\d{1,2}/,
68
- ordinal : function (number) {
78
+ dayOfMonthOrdinalParse: /\d{1,2}/,
79
+ ordinal: function (number) {
69
80
  return number;
70
81
  },
71
- week : {
72
- dow : 1, // Monday is the first day of the week.
73
- doy : 4 // The week that contains Jan 4th is the first week of the year.
74
- }
82
+ week: {
83
+ dow: 1, // Monday is the first day of the week.
84
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
85
+ },
75
86
  });
76
87
 
77
88
  return vi;
78
89
 
79
- }));
90
+ })));