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,82 +8,86 @@
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
- var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
15
+ var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
16
+ '_'
17
+ ),
15
18
  monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
16
19
  function plural(n) {
17
- return (n > 1) && (n < 5);
20
+ return n > 1 && n < 5;
18
21
  }
19
22
  function translate(number, withoutSuffix, key, isFuture) {
20
23
  var result = number + ' ';
21
24
  switch (key) {
22
- case 's': // a few seconds / in a few seconds / a few seconds ago
23
- return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
24
- case 'm': // a minute / in a minute / a minute ago
25
- return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
25
+ case 's': // a few seconds / in a few seconds / a few seconds ago
26
+ return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
27
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
28
+ if (withoutSuffix || isFuture) {
29
+ return result + (plural(number) ? 'sekundy' : 'sekúnd');
30
+ } else {
31
+ return result + 'sekundami';
32
+ }
33
+ case 'm': // a minute / in a minute / a minute ago
34
+ return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
26
35
  case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
27
36
  if (withoutSuffix || isFuture) {
28
37
  return result + (plural(number) ? 'minúty' : 'minút');
29
38
  } else {
30
39
  return result + 'minútami';
31
40
  }
32
- break;
33
- case 'h': // an hour / in an hour / an hour ago
34
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
41
+ case 'h': // an hour / in an hour / an hour ago
42
+ return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
35
43
  case 'hh': // 9 hours / in 9 hours / 9 hours ago
36
44
  if (withoutSuffix || isFuture) {
37
45
  return result + (plural(number) ? 'hodiny' : 'hodín');
38
46
  } else {
39
47
  return result + 'hodinami';
40
48
  }
41
- break;
42
- case 'd': // a day / in a day / a day ago
43
- return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
49
+ case 'd': // a day / in a day / a day ago
50
+ return withoutSuffix || isFuture ? 'deň' : 'dňom';
44
51
  case 'dd': // 9 days / in 9 days / 9 days ago
45
52
  if (withoutSuffix || isFuture) {
46
53
  return result + (plural(number) ? 'dni' : 'dní');
47
54
  } else {
48
55
  return result + 'dňami';
49
56
  }
50
- break;
51
- case 'M': // a month / in a month / a month ago
52
- return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
57
+ case 'M': // a month / in a month / a month ago
58
+ return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
53
59
  case 'MM': // 9 months / in 9 months / 9 months ago
54
60
  if (withoutSuffix || isFuture) {
55
61
  return result + (plural(number) ? 'mesiace' : 'mesiacov');
56
62
  } else {
57
63
  return result + 'mesiacmi';
58
64
  }
59
- break;
60
- case 'y': // a year / in a year / a year ago
61
- return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
65
+ case 'y': // a year / in a year / a year ago
66
+ return withoutSuffix || isFuture ? 'rok' : 'rokom';
62
67
  case 'yy': // 9 years / in 9 years / 9 years ago
63
68
  if (withoutSuffix || isFuture) {
64
69
  return result + (plural(number) ? 'roky' : 'rokov');
65
70
  } else {
66
71
  return result + 'rokmi';
67
72
  }
68
- break;
69
73
  }
70
74
  }
71
75
 
72
76
  var sk = moment.defineLocale('sk', {
73
- months : months,
74
- monthsShort : monthsShort,
75
- weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
76
- weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
77
- weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
78
- longDateFormat : {
77
+ months: months,
78
+ monthsShort: monthsShort,
79
+ weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
80
+ weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
81
+ weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
82
+ longDateFormat: {
79
83
  LT: 'H:mm',
80
- LTS : 'H:mm:ss',
81
- L : 'DD.MM.YYYY',
82
- LL : 'D. MMMM YYYY',
83
- LLL : 'D. MMMM YYYY H:mm',
84
- LLLL : 'dddd D. MMMM YYYY H:mm'
84
+ LTS: 'H:mm:ss',
85
+ L: 'DD.MM.YYYY',
86
+ LL: 'D. MMMM YYYY',
87
+ LLL: 'D. MMMM YYYY H:mm',
88
+ LLLL: 'dddd D. MMMM YYYY H:mm',
85
89
  },
86
- calendar : {
90
+ calendar: {
87
91
  sameDay: '[dnes o] LT',
88
92
  nextDay: '[zajtra o] LT',
89
93
  nextWeek: function () {
@@ -120,31 +124,32 @@
120
124
  return '[minulú sobotu o] LT';
121
125
  }
122
126
  },
123
- sameElse: 'L'
127
+ sameElse: 'L',
124
128
  },
125
- relativeTime : {
126
- future : 'za %s',
127
- past : 'pred %s',
128
- s : translate,
129
- m : translate,
130
- mm : translate,
131
- h : translate,
132
- hh : translate,
133
- d : translate,
134
- dd : translate,
135
- M : translate,
136
- MM : translate,
137
- y : translate,
138
- yy : translate
129
+ relativeTime: {
130
+ future: 'za %s',
131
+ past: 'pred %s',
132
+ s: translate,
133
+ ss: translate,
134
+ m: translate,
135
+ mm: translate,
136
+ h: translate,
137
+ hh: translate,
138
+ d: translate,
139
+ dd: translate,
140
+ M: translate,
141
+ MM: translate,
142
+ y: translate,
143
+ yy: translate,
144
+ },
145
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
146
+ ordinal: '%d.',
147
+ week: {
148
+ dow: 1, // Monday is the first day of the week.
149
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
139
150
  },
140
- ordinalParse: /\d{1,2}\./,
141
- ordinal : '%d.',
142
- week : {
143
- dow : 1, // Monday is the first day of the week.
144
- doy : 4 // The week that contains Jan 4th is the first week of the year.
145
- }
146
151
  });
147
152
 
148
153
  return sk;
149
154
 
150
- }));
155
+ })));
@@ -7,14 +7,28 @@
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
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
14
15
  var result = number + ' ';
15
16
  switch (key) {
16
17
  case 's':
17
- return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18
+ return withoutSuffix || isFuture
19
+ ? 'nekaj sekund'
20
+ : 'nekaj sekundami';
21
+ case 'ss':
22
+ if (number === 1) {
23
+ result += withoutSuffix ? 'sekundo' : 'sekundi';
24
+ } else if (number === 2) {
25
+ result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
26
+ } else if (number < 5) {
27
+ result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
28
+ } else {
29
+ result += 'sekund';
30
+ }
31
+ return result;
18
32
  case 'm':
19
33
  return withoutSuffix ? 'ena minuta' : 'eno minuto';
20
34
  case 'mm':
@@ -82,26 +96,30 @@
82
96
  }
83
97
 
84
98
  var sl = moment.defineLocale('sl', {
85
- months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
86
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
99
+ months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
100
+ '_'
101
+ ),
102
+ monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
103
+ '_'
104
+ ),
87
105
  monthsParseExact: true,
88
- weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
89
- weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
90
- weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
91
- weekdaysParseExact : true,
92
- longDateFormat : {
93
- LT : 'H:mm',
94
- LTS : 'H:mm:ss',
95
- L : 'DD.MM.YYYY',
96
- LL : 'D. MMMM YYYY',
97
- LLL : 'D. MMMM YYYY H:mm',
98
- LLLL : 'dddd, D. MMMM YYYY H:mm'
106
+ weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
107
+ weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
108
+ weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
109
+ weekdaysParseExact: true,
110
+ longDateFormat: {
111
+ LT: 'H:mm',
112
+ LTS: 'H:mm:ss',
113
+ L: 'DD. MM. YYYY',
114
+ LL: 'D. MMMM YYYY',
115
+ LLL: 'D. MMMM YYYY H:mm',
116
+ LLLL: 'dddd, D. MMMM YYYY H:mm',
99
117
  },
100
- calendar : {
101
- sameDay : '[danes ob] LT',
102
- nextDay : '[jutri ob] LT',
118
+ calendar: {
119
+ sameDay: '[danes ob] LT',
120
+ nextDay: '[jutri ob] LT',
103
121
 
104
- nextWeek : function () {
122
+ nextWeek: function () {
105
123
  switch (this.day()) {
106
124
  case 0:
107
125
  return '[v] [nedeljo] [ob] LT';
@@ -116,8 +134,8 @@
116
134
  return '[v] dddd [ob] LT';
117
135
  }
118
136
  },
119
- lastDay : '[včeraj ob] LT',
120
- lastWeek : function () {
137
+ lastDay: '[včeraj ob] LT',
138
+ lastWeek: function () {
121
139
  switch (this.day()) {
122
140
  case 0:
123
141
  return '[prejšnjo] [nedeljo] [ob] LT';
@@ -132,31 +150,32 @@
132
150
  return '[prejšnji] dddd [ob] LT';
133
151
  }
134
152
  },
135
- sameElse : 'L'
153
+ sameElse: 'L',
136
154
  },
137
- relativeTime : {
138
- future : 'čez %s',
139
- past : 'pred %s',
140
- s : processRelativeTime,
141
- m : processRelativeTime,
142
- mm : processRelativeTime,
143
- h : processRelativeTime,
144
- hh : processRelativeTime,
145
- d : processRelativeTime,
146
- dd : processRelativeTime,
147
- M : processRelativeTime,
148
- MM : processRelativeTime,
149
- y : processRelativeTime,
150
- yy : processRelativeTime
155
+ relativeTime: {
156
+ future: 'čez %s',
157
+ past: 'pred %s',
158
+ s: processRelativeTime,
159
+ ss: processRelativeTime,
160
+ m: processRelativeTime,
161
+ mm: processRelativeTime,
162
+ h: processRelativeTime,
163
+ hh: processRelativeTime,
164
+ d: processRelativeTime,
165
+ dd: processRelativeTime,
166
+ M: processRelativeTime,
167
+ MM: processRelativeTime,
168
+ y: processRelativeTime,
169
+ yy: processRelativeTime,
170
+ },
171
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
172
+ ordinal: '%d.',
173
+ week: {
174
+ dow: 1, // Monday is the first day of the week.
175
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
151
176
  },
152
- ordinalParse: /\d{1,2}\./,
153
- ordinal : '%d.',
154
- week : {
155
- dow : 1, // Monday is the first day of the week.
156
- doy : 7 // The week that contains Jan 1st is the first week of the year.
157
- }
158
177
  });
159
178
 
160
179
  return sl;
161
180
 
162
- }));
181
+ })));
@@ -9,62 +9,68 @@
9
9
  && typeof require === 'function' ? factory(require('../moment')) :
10
10
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
11
  factory(global.moment)
12
- }(this, function (moment) { 'use strict';
12
+ }(this, (function (moment) { 'use strict';
13
13
 
14
+ //! moment.js locale configuration
14
15
 
15
16
  var sq = moment.defineLocale('sq', {
16
- months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
17
- monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
18
- weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
19
- weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
20
- weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
21
- weekdaysParseExact : true,
17
+ months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
18
+ '_'
19
+ ),
20
+ monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
21
+ weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
22
+ '_'
23
+ ),
24
+ weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
25
+ weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
26
+ weekdaysParseExact: true,
22
27
  meridiemParse: /PD|MD/,
23
28
  isPM: function (input) {
24
29
  return input.charAt(0) === 'M';
25
30
  },
26
- meridiem : function (hours, minutes, isLower) {
31
+ meridiem: function (hours, minutes, isLower) {
27
32
  return hours < 12 ? 'PD' : 'MD';
28
33
  },
29
- longDateFormat : {
30
- LT : 'HH:mm',
31
- LTS : 'HH:mm:ss',
32
- L : 'DD/MM/YYYY',
33
- LL : 'D MMMM YYYY',
34
- LLL : 'D MMMM YYYY HH:mm',
35
- LLLL : 'dddd, D MMMM YYYY HH:mm'
34
+ longDateFormat: {
35
+ LT: 'HH:mm',
36
+ LTS: 'HH:mm:ss',
37
+ L: 'DD/MM/YYYY',
38
+ LL: 'D MMMM YYYY',
39
+ LLL: 'D MMMM YYYY HH:mm',
40
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
36
41
  },
37
- calendar : {
38
- sameDay : '[Sot në] LT',
39
- nextDay : '[Nesër në] LT',
40
- nextWeek : 'dddd [në] LT',
41
- lastDay : '[Dje në] LT',
42
- lastWeek : 'dddd [e kaluar në] LT',
43
- sameElse : 'L'
42
+ calendar: {
43
+ sameDay: '[Sot në] LT',
44
+ nextDay: '[Nesër në] LT',
45
+ nextWeek: 'dddd [në] LT',
46
+ lastDay: '[Dje në] LT',
47
+ lastWeek: 'dddd [e kaluar në] LT',
48
+ sameElse: 'L',
44
49
  },
45
- relativeTime : {
46
- future : 'në %s',
47
- past : '%s më parë',
48
- s : 'disa sekonda',
49
- m : 'një minutë',
50
- mm : '%d minuta',
51
- h : 'një orë',
52
- hh : '%d orë',
53
- d : 'një ditë',
54
- dd : '%d ditë',
55
- M : 'një muaj',
56
- MM : '%d muaj',
57
- y : 'një vit',
58
- yy : '%d vite'
50
+ relativeTime: {
51
+ future: 'në %s',
52
+ past: '%s më parë',
53
+ s: 'disa sekonda',
54
+ ss: '%d sekonda',
55
+ m: 'një minutë',
56
+ mm: '%d minuta',
57
+ h: 'një orë',
58
+ hh: '%d orë',
59
+ d: 'një ditë',
60
+ dd: '%d ditë',
61
+ M: 'një muaj',
62
+ MM: '%d muaj',
63
+ y: 'një vit',
64
+ yy: '%d vite',
65
+ },
66
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
67
+ ordinal: '%d.',
68
+ week: {
69
+ dow: 1, // Monday is the first day of the week.
70
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
59
71
  },
60
- ordinalParse: /\d{1,2}\./,
61
- ordinal : '%d.',
62
- week : {
63
- dow : 1, // Monday is the first day of the week.
64
- doy : 4 // The week that contains Jan 4th is the first week of the year.
65
- }
66
72
  });
67
73
 
68
74
  return sq;
69
75
 
70
- }));
76
+ })));
@@ -1,53 +1,69 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Serbian Cyrillic [sr-cyrl]
3
3
  //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
4
+ //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
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 translator = {
14
- words: { //Different grammatical cases
16
+ words: {
17
+ //Different grammatical cases
18
+ ss: ['секунда', 'секунде', 'секунди'],
15
19
  m: ['један минут', 'једне минуте'],
16
20
  mm: ['минут', 'минуте', 'минута'],
17
21
  h: ['један сат', 'једног сата'],
18
22
  hh: ['сат', 'сата', 'сати'],
19
23
  dd: ['дан', 'дана', 'дана'],
20
24
  MM: ['месец', 'месеца', 'месеци'],
21
- yy: ['година', 'године', 'година']
25
+ yy: ['година', 'године', 'година'],
22
26
  },
23
27
  correctGrammaticalCase: function (number, wordKey) {
24
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
28
+ return number === 1
29
+ ? wordKey[0]
30
+ : number >= 2 && number <= 4
31
+ ? wordKey[1]
32
+ : wordKey[2];
25
33
  },
26
34
  translate: function (number, withoutSuffix, key) {
27
35
  var wordKey = translator.words[key];
28
36
  if (key.length === 1) {
29
37
  return withoutSuffix ? wordKey[0] : wordKey[1];
30
38
  } else {
31
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
39
+ return (
40
+ number +
41
+ ' ' +
42
+ translator.correctGrammaticalCase(number, wordKey)
43
+ );
32
44
  }
33
- }
45
+ },
34
46
  };
35
47
 
36
- var sr_cyrl = moment.defineLocale('sr-cyrl', {
37
- months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
38
- monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
48
+ var srCyrl = moment.defineLocale('sr-cyrl', {
49
+ months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
50
+ '_'
51
+ ),
52
+ monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
53
+ '_'
54
+ ),
39
55
  monthsParseExact: true,
40
56
  weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
41
57
  weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
42
58
  weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
43
- weekdaysParseExact : true,
59
+ weekdaysParseExact: true,
44
60
  longDateFormat: {
45
61
  LT: 'H:mm',
46
- LTS : 'H:mm:ss',
47
- L: 'DD.MM.YYYY',
48
- LL: 'D. MMMM YYYY',
49
- LLL: 'D. MMMM YYYY H:mm',
50
- LLLL: 'dddd, D. MMMM YYYY H:mm'
62
+ LTS: 'H:mm:ss',
63
+ L: 'D. M. YYYY.',
64
+ LL: 'D. MMMM YYYY.',
65
+ LLL: 'D. MMMM YYYY. H:mm',
66
+ LLLL: 'dddd, D. MMMM YYYY. H:mm',
51
67
  },
52
68
  calendar: {
53
69
  sameDay: '[данас у] LT',
@@ -67,8 +83,8 @@
67
83
  return '[у] dddd [у] LT';
68
84
  }
69
85
  },
70
- lastDay : '[јуче у] LT',
71
- lastWeek : function () {
86
+ lastDay: '[јуче у] LT',
87
+ lastWeek: function () {
72
88
  var lastWeekDays = [
73
89
  '[прошле] [недеље] [у] LT',
74
90
  '[прошлог] [понедељка] [у] LT',
@@ -76,35 +92,36 @@
76
92
  '[прошле] [среде] [у] LT',
77
93
  '[прошлог] [четвртка] [у] LT',
78
94
  '[прошлог] [петка] [у] LT',
79
- '[прошле] [суботе] [у] LT'
95
+ '[прошле] [суботе] [у] LT',
80
96
  ];
81
97
  return lastWeekDays[this.day()];
82
98
  },
83
- sameElse : 'L'
99
+ sameElse: 'L',
100
+ },
101
+ relativeTime: {
102
+ future: 'за %s',
103
+ past: 'пре %s',
104
+ s: 'неколико секунди',
105
+ ss: translator.translate,
106
+ m: translator.translate,
107
+ mm: translator.translate,
108
+ h: translator.translate,
109
+ hh: translator.translate,
110
+ d: 'дан',
111
+ dd: translator.translate,
112
+ M: 'месец',
113
+ MM: translator.translate,
114
+ y: 'годину',
115
+ yy: translator.translate,
84
116
  },
85
- relativeTime : {
86
- future : 'за %s',
87
- past : 'пре %s',
88
- s : 'неколико секунди',
89
- m : translator.translate,
90
- mm : translator.translate,
91
- h : translator.translate,
92
- hh : translator.translate,
93
- d : 'дан',
94
- dd : translator.translate,
95
- M : 'месец',
96
- MM : translator.translate,
97
- y : 'годину',
98
- yy : translator.translate
117
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
118
+ ordinal: '%d.',
119
+ week: {
120
+ dow: 1, // Monday is the first day of the week.
121
+ doy: 7, // The week that contains Jan 1st is the first week of the year.
99
122
  },
100
- ordinalParse: /\d{1,2}\./,
101
- ordinal : '%d.',
102
- week : {
103
- dow : 1, // Monday is the first day of the week.
104
- doy : 7 // The week that contains Jan 1st is the first week of the year.
105
- }
106
123
  });
107
124
 
108
- return sr_cyrl;
125
+ return srCyrl;
109
126
 
110
- }));
127
+ })));