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
@@ -1,17 +1,13 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Serbian [sr]
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
- ;(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
-
6
+ import moment from '../moment';
12
7
 
13
8
  var translator = {
14
- words: { //Different grammatical cases
9
+ words: {
10
+ //Different grammatical cases
15
11
  ss: ['sekunda', 'sekunde', 'sekundi'],
16
12
  m: ['jedan minut', 'jedne minute'],
17
13
  mm: ['minut', 'minute', 'minuta'],
@@ -19,36 +15,50 @@ var translator = {
19
15
  hh: ['sat', 'sata', 'sati'],
20
16
  dd: ['dan', 'dana', 'dana'],
21
17
  MM: ['mesec', 'meseca', 'meseci'],
22
- yy: ['godina', 'godine', 'godina']
18
+ yy: ['godina', 'godine', 'godina'],
23
19
  },
24
20
  correctGrammaticalCase: function (number, wordKey) {
25
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
21
+ return number === 1
22
+ ? wordKey[0]
23
+ : number >= 2 && number <= 4
24
+ ? wordKey[1]
25
+ : wordKey[2];
26
26
  },
27
27
  translate: function (number, withoutSuffix, key) {
28
28
  var wordKey = translator.words[key];
29
29
  if (key.length === 1) {
30
30
  return withoutSuffix ? wordKey[0] : wordKey[1];
31
31
  } else {
32
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
32
+ return (
33
+ number +
34
+ ' ' +
35
+ translator.correctGrammaticalCase(number, wordKey)
36
+ );
33
37
  }
34
- }
38
+ },
35
39
  };
36
40
 
37
- var sr = moment.defineLocale('sr', {
38
- months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
39
- monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
41
+ export default moment.defineLocale('sr', {
42
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
43
+ '_'
44
+ ),
45
+ monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
46
+ '_'
47
+ ),
40
48
  monthsParseExact: true,
41
- weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
49
+ weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
50
+ '_'
51
+ ),
42
52
  weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
43
53
  weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
44
- weekdaysParseExact : true,
54
+ weekdaysParseExact: true,
45
55
  longDateFormat: {
46
56
  LT: 'H:mm',
47
- LTS : 'H:mm:ss',
48
- L: 'DD.MM.YYYY',
49
- LL: 'D. MMMM YYYY',
50
- LLL: 'D. MMMM YYYY H:mm',
51
- LLLL: 'dddd, D. MMMM YYYY H:mm'
57
+ LTS: 'H:mm:ss',
58
+ L: 'D. M. YYYY.',
59
+ LL: 'D. MMMM YYYY.',
60
+ LLL: 'D. MMMM YYYY. H:mm',
61
+ LLLL: 'dddd, D. MMMM YYYY. H:mm',
52
62
  },
53
63
  calendar: {
54
64
  sameDay: '[danas u] LT',
@@ -68,8 +78,8 @@ var sr = moment.defineLocale('sr', {
68
78
  return '[u] dddd [u] LT';
69
79
  }
70
80
  },
71
- lastDay : '[juče u] LT',
72
- lastWeek : function () {
81
+ lastDay: '[juče u] LT',
82
+ lastWeek: function () {
73
83
  var lastWeekDays = [
74
84
  '[prošle] [nedelje] [u] LT',
75
85
  '[prošlog] [ponedeljka] [u] LT',
@@ -77,36 +87,32 @@ var sr = moment.defineLocale('sr', {
77
87
  '[prošle] [srede] [u] LT',
78
88
  '[prošlog] [četvrtka] [u] LT',
79
89
  '[prošlog] [petka] [u] LT',
80
- '[prošle] [subote] [u] LT'
90
+ '[prošle] [subote] [u] LT',
81
91
  ];
82
92
  return lastWeekDays[this.day()];
83
93
  },
84
- sameElse : 'L'
94
+ sameElse: 'L',
85
95
  },
86
- relativeTime : {
87
- future : 'za %s',
88
- past : 'pre %s',
89
- s : 'nekoliko sekundi',
90
- ss : translator.translate,
91
- m : translator.translate,
92
- mm : translator.translate,
93
- h : translator.translate,
94
- hh : translator.translate,
95
- d : 'dan',
96
- dd : translator.translate,
97
- M : 'mesec',
98
- MM : translator.translate,
99
- y : 'godinu',
100
- yy : translator.translate
96
+ relativeTime: {
97
+ future: 'za %s',
98
+ past: 'pre %s',
99
+ s: 'nekoliko sekundi',
100
+ ss: translator.translate,
101
+ m: translator.translate,
102
+ mm: translator.translate,
103
+ h: translator.translate,
104
+ hh: translator.translate,
105
+ d: 'dan',
106
+ dd: translator.translate,
107
+ M: 'mesec',
108
+ MM: translator.translate,
109
+ y: 'godinu',
110
+ yy: translator.translate,
101
111
  },
102
112
  dayOfMonthOrdinalParse: /\d{1,2}\./,
103
- ordinal : '%d.',
104
- week : {
105
- dow : 1, // Monday is the first day of the week.
106
- doy : 7 // The week that contains Jan 1st is the first week of the year.
107
- }
113
+ ordinal: '%d.',
114
+ week: {
115
+ dow: 1, // Monday is the first day of the week.
116
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
117
+ },
108
118
  });
109
-
110
- return sr;
111
-
112
- })));
@@ -2,56 +2,53 @@
2
2
  //! locale : siSwati [ss]
3
3
  //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
4
4
 
5
- ;(function (global, factory) {
6
- typeof exports === 'object' && typeof module !== 'undefined'
7
- && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
- factory(global.moment)
10
- }(this, (function (moment) { 'use strict';
5
+ import moment from '../moment';
11
6
 
12
-
13
-
14
- var ss = moment.defineLocale('ss', {
15
- months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
16
- monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
17
- weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
18
- weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
19
- weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
20
- weekdaysParseExact : true,
21
- longDateFormat : {
22
- LT : 'h:mm A',
23
- LTS : 'h:mm:ss A',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D MMMM YYYY',
26
- LLL : 'D MMMM YYYY h:mm A',
27
- LLLL : 'dddd, D MMMM YYYY h:mm A'
7
+ export default moment.defineLocale('ss', {
8
+ months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
12
+ weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
13
+ '_'
14
+ ),
15
+ weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
16
+ weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
17
+ weekdaysParseExact: true,
18
+ longDateFormat: {
19
+ LT: 'h:mm A',
20
+ LTS: 'h:mm:ss A',
21
+ L: 'DD/MM/YYYY',
22
+ LL: 'D MMMM YYYY',
23
+ LLL: 'D MMMM YYYY h:mm A',
24
+ LLLL: 'dddd, D MMMM YYYY h:mm A',
28
25
  },
29
- calendar : {
30
- sameDay : '[Namuhla nga] LT',
31
- nextDay : '[Kusasa nga] LT',
32
- nextWeek : 'dddd [nga] LT',
33
- lastDay : '[Itolo nga] LT',
34
- lastWeek : 'dddd [leliphelile] [nga] LT',
35
- sameElse : 'L'
26
+ calendar: {
27
+ sameDay: '[Namuhla nga] LT',
28
+ nextDay: '[Kusasa nga] LT',
29
+ nextWeek: 'dddd [nga] LT',
30
+ lastDay: '[Itolo nga] LT',
31
+ lastWeek: 'dddd [leliphelile] [nga] LT',
32
+ sameElse: 'L',
36
33
  },
37
- relativeTime : {
38
- future : 'nga %s',
39
- past : 'wenteka nga %s',
40
- s : 'emizuzwana lomcane',
41
- ss : '%d mzuzwana',
42
- m : 'umzuzu',
43
- mm : '%d emizuzu',
44
- h : 'lihora',
45
- hh : '%d emahora',
46
- d : 'lilanga',
47
- dd : '%d emalanga',
48
- M : 'inyanga',
49
- MM : '%d tinyanga',
50
- y : 'umnyaka',
51
- yy : '%d iminyaka'
34
+ relativeTime: {
35
+ future: 'nga %s',
36
+ past: 'wenteka nga %s',
37
+ s: 'emizuzwana lomcane',
38
+ ss: '%d mzuzwana',
39
+ m: 'umzuzu',
40
+ mm: '%d emizuzu',
41
+ h: 'lihora',
42
+ hh: '%d emahora',
43
+ d: 'lilanga',
44
+ dd: '%d emalanga',
45
+ M: 'inyanga',
46
+ MM: '%d tinyanga',
47
+ y: 'umnyaka',
48
+ yy: '%d iminyaka',
52
49
  },
53
50
  meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
54
- meridiem : function (hours, minutes, isLower) {
51
+ meridiem: function (hours, minutes, isLower) {
55
52
  if (hours < 11) {
56
53
  return 'ekuseni';
57
54
  } else if (hours < 15) {
@@ -62,7 +59,7 @@ var ss = moment.defineLocale('ss', {
62
59
  return 'ebusuku';
63
60
  }
64
61
  },
65
- meridiemHour : function (hour, meridiem) {
62
+ meridiemHour: function (hour, meridiem) {
66
63
  if (hour === 12) {
67
64
  hour = 0;
68
65
  }
@@ -78,13 +75,9 @@ var ss = moment.defineLocale('ss', {
78
75
  }
79
76
  },
80
77
  dayOfMonthOrdinalParse: /\d{1,2}/,
81
- ordinal : '%d',
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
- }
78
+ ordinal: '%d',
79
+ week: {
80
+ dow: 1, // Monday is the first day of the week.
81
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
82
+ },
86
83
  });
87
-
88
- return ss;
89
-
90
- })));
@@ -2,69 +2,67 @@
2
2
  //! locale : Swedish [sv]
3
3
  //! author : Jens Alm : https://github.com/ulmus
4
4
 
5
- ;(function (global, factory) {
6
- typeof exports === 'object' && typeof module !== 'undefined'
7
- && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
- factory(global.moment)
10
- }(this, (function (moment) { 'use strict';
5
+ import moment from '../moment';
11
6
 
12
-
13
- var sv = moment.defineLocale('sv', {
14
- months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
15
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
16
- weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
17
- weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
18
- weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
19
- longDateFormat : {
20
- LT : 'HH:mm',
21
- LTS : 'HH:mm:ss',
22
- L : 'YYYY-MM-DD',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY [kl.] HH:mm',
25
- LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
26
- lll : 'D MMM YYYY HH:mm',
27
- llll : 'ddd D MMM YYYY HH:mm'
7
+ export default moment.defineLocale('sv', {
8
+ months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
12
+ weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
13
+ weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
14
+ weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
15
+ longDateFormat: {
16
+ LT: 'HH:mm',
17
+ LTS: 'HH:mm:ss',
18
+ L: 'YYYY-MM-DD',
19
+ LL: 'D MMMM YYYY',
20
+ LLL: 'D MMMM YYYY [kl.] HH:mm',
21
+ LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
22
+ lll: 'D MMM YYYY HH:mm',
23
+ llll: 'ddd D MMM YYYY HH:mm',
28
24
  },
29
- calendar : {
25
+ calendar: {
30
26
  sameDay: '[Idag] LT',
31
27
  nextDay: '[Imorgon] LT',
32
28
  lastDay: '[Igår] LT',
33
29
  nextWeek: '[På] dddd LT',
34
30
  lastWeek: '[I] dddd[s] LT',
35
- sameElse: 'L'
31
+ sameElse: 'L',
36
32
  },
37
- relativeTime : {
38
- future : 'om %s',
39
- past : 'för %s sedan',
40
- s : 'några sekunder',
41
- ss : '%d sekunder',
42
- m : 'en minut',
43
- mm : '%d minuter',
44
- h : 'en timme',
45
- hh : '%d timmar',
46
- d : 'en dag',
47
- dd : '%d dagar',
48
- M : 'en månad',
49
- MM : '%d månader',
50
- y : 'ett år',
51
- yy : '%d år'
33
+ relativeTime: {
34
+ future: 'om %s',
35
+ past: 'för %s sedan',
36
+ s: 'några sekunder',
37
+ ss: '%d sekunder',
38
+ m: 'en minut',
39
+ mm: '%d minuter',
40
+ h: 'en timme',
41
+ hh: '%d timmar',
42
+ d: 'en dag',
43
+ dd: '%d dagar',
44
+ M: 'en månad',
45
+ MM: '%d månader',
46
+ y: 'ett år',
47
+ yy: '%d år',
52
48
  },
53
- dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
54
- ordinal : function (number) {
49
+ dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
50
+ ordinal: function (number) {
55
51
  var b = number % 10,
56
- output = (~~(number % 100 / 10) === 1) ? 'e' :
57
- (b === 1) ? 'a' :
58
- (b === 2) ? 'a' :
59
- (b === 3) ? 'e' : 'e';
52
+ output =
53
+ ~~((number % 100) / 10) === 1
54
+ ? ':e'
55
+ : b === 1
56
+ ? ':a'
57
+ : b === 2
58
+ ? ':a'
59
+ : b === 3
60
+ ? ':e'
61
+ : ':e';
60
62
  return number + output;
61
63
  },
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
- }
64
+ week: {
65
+ dow: 1, // Monday is the first day of the week.
66
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
67
+ },
66
68
  });
67
-
68
- return sv;
69
-
70
- })));
@@ -2,59 +2,53 @@
2
2
  //! locale : Swahili [sw]
3
3
  //! author : Fahad Kassim : https://github.com/fadsel
4
4
 
5
- ;(function (global, factory) {
6
- typeof exports === 'object' && typeof module !== 'undefined'
7
- && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
- factory(global.moment)
10
- }(this, (function (moment) { 'use strict';
5
+ import moment from '../moment';
11
6
 
12
-
13
- var sw = moment.defineLocale('sw', {
14
- months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
15
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
16
- weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
17
- weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
18
- weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
19
- weekdaysParseExact : true,
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'HH:mm:ss',
23
- L : 'DD.MM.YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY HH:mm',
26
- LLLL : 'dddd, D MMMM YYYY HH:mm'
7
+ export default moment.defineLocale('sw', {
8
+ months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
12
+ weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
13
+ '_'
14
+ ),
15
+ weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
16
+ weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
17
+ weekdaysParseExact: true,
18
+ longDateFormat: {
19
+ LT: 'hh:mm A',
20
+ LTS: 'HH:mm:ss',
21
+ L: 'DD.MM.YYYY',
22
+ LL: 'D MMMM YYYY',
23
+ LLL: 'D MMMM YYYY HH:mm',
24
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
25
+ },
26
+ calendar: {
27
+ sameDay: '[leo saa] LT',
28
+ nextDay: '[kesho saa] LT',
29
+ nextWeek: '[wiki ijayo] dddd [saat] LT',
30
+ lastDay: '[jana] LT',
31
+ lastWeek: '[wiki iliyopita] dddd [saat] LT',
32
+ sameElse: 'L',
27
33
  },
28
- calendar : {
29
- sameDay : '[leo saa] LT',
30
- nextDay : '[kesho saa] LT',
31
- nextWeek : '[wiki ijayo] dddd [saat] LT',
32
- lastDay : '[jana] LT',
33
- lastWeek : '[wiki iliyopita] dddd [saat] LT',
34
- sameElse : 'L'
34
+ relativeTime: {
35
+ future: '%s baadaye',
36
+ past: 'tokea %s',
37
+ s: 'hivi punde',
38
+ ss: 'sekunde %d',
39
+ m: 'dakika moja',
40
+ mm: 'dakika %d',
41
+ h: 'saa limoja',
42
+ hh: 'masaa %d',
43
+ d: 'siku moja',
44
+ dd: 'siku %d',
45
+ M: 'mwezi mmoja',
46
+ MM: 'miezi %d',
47
+ y: 'mwaka mmoja',
48
+ yy: 'miaka %d',
35
49
  },
36
- relativeTime : {
37
- future : '%s baadaye',
38
- past : 'tokea %s',
39
- s : 'hivi punde',
40
- ss : 'sekunde %d',
41
- m : 'dakika moja',
42
- mm : 'dakika %d',
43
- h : 'saa limoja',
44
- hh : 'masaa %d',
45
- d : 'siku moja',
46
- dd : 'masiku %d',
47
- M : 'mwezi mmoja',
48
- MM : 'miezi %d',
49
- y : 'mwaka mmoja',
50
- yy : 'miaka %d'
50
+ week: {
51
+ dow: 1, // Monday is the first day of the week.
52
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
51
53
  },
52
- week : {
53
- dow : 1, // Monday is the first day of the week.
54
- doy : 7 // The week that contains Jan 1st is the first week of the year.
55
- }
56
54
  });
57
-
58
- return sw;
59
-
60
- })));