momentjs-rails 2.20.1 → 2.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/app/assets/config/manifest.js +1 -0
  5. data/test/dummy/config/environments/development.rb +2 -0
  6. data/test/dummy/config/environments/production.rb +1 -0
  7. data/test/dummy/config/environments/test.rb +2 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
  36. data/test/integration/navigation_test.rb +1 -1
  37. data/vendor/assets/javascripts/moment/af.js +51 -54
  38. data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
  39. data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
  40. data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
  41. data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
  42. data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
  43. data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
  44. data/vendor/assets/javascripts/moment/ar.js +158 -112
  45. data/vendor/assets/javascripts/moment/az.js +52 -57
  46. data/vendor/assets/javascripts/moment/be.js +69 -63
  47. data/vendor/assets/javascripts/moment/bg.js +49 -53
  48. data/vendor/assets/javascripts/moment/bm.js +43 -51
  49. data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
  50. data/vendor/assets/javascripts/moment/bn.js +76 -78
  51. data/vendor/assets/javascripts/moment/bo.js +80 -78
  52. data/vendor/assets/javascripts/moment/br.js +115 -59
  53. data/vendor/assets/javascripts/moment/bs.js +48 -52
  54. data/vendor/assets/javascripts/moment/ca.js +76 -68
  55. data/vendor/assets/javascripts/moment/cs.js +80 -89
  56. data/vendor/assets/javascripts/moment/cv.js +45 -47
  57. data/vendor/assets/javascripts/moment/cy.js +41 -26
  58. data/vendor/assets/javascripts/moment/da.js +43 -51
  59. data/vendor/assets/javascripts/moment/de-at.js +53 -54
  60. data/vendor/assets/javascripts/moment/de-ch.js +54 -55
  61. data/vendor/assets/javascripts/moment/de.js +53 -54
  62. data/vendor/assets/javascripts/moment/dv.js +64 -75
  63. data/vendor/assets/javascripts/moment/el.js +63 -60
  64. data/vendor/assets/javascripts/moment/en-au.js +55 -55
  65. data/vendor/assets/javascripts/moment/en-ca.js +52 -52
  66. data/vendor/assets/javascripts/moment/en-gb.js +55 -55
  67. data/vendor/assets/javascripts/moment/en-ie.js +55 -55
  68. data/vendor/assets/javascripts/moment/en-il.js +64 -0
  69. data/vendor/assets/javascripts/moment/en-in.js +68 -0
  70. data/vendor/assets/javascripts/moment/en-nz.js +55 -55
  71. data/vendor/assets/javascripts/moment/en-sg.js +68 -0
  72. data/vendor/assets/javascripts/moment/eo.js +46 -52
  73. data/vendor/assets/javascripts/moment/es-do.js +75 -63
  74. data/vendor/assets/javascripts/moment/es-mx.js +106 -0
  75. data/vendor/assets/javascripts/moment/es-us.js +83 -61
  76. data/vendor/assets/javascripts/moment/es.js +83 -70
  77. data/vendor/assets/javascripts/moment/et.js +58 -62
  78. data/vendor/assets/javascripts/moment/eu.js +53 -57
  79. data/vendor/assets/javascripts/moment/fa.js +84 -82
  80. data/vendor/assets/javascripts/moment/fi.js +72 -61
  81. data/vendor/assets/javascripts/moment/fil.js +58 -0
  82. data/vendor/assets/javascripts/moment/fo.js +46 -51
  83. data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
  84. data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
  85. data/vendor/assets/javascripts/moment/fr.js +72 -52
  86. data/vendor/assets/javascripts/moment/fy.js +52 -51
  87. data/vendor/assets/javascripts/moment/ga.js +95 -0
  88. data/vendor/assets/javascripts/moment/gd.js +81 -63
  89. data/vendor/assets/javascripts/moment/gl.js +54 -58
  90. data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
  91. data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
  92. data/vendor/assets/javascripts/moment/gu.js +30 -34
  93. data/vendor/assets/javascripts/moment/he.js +48 -54
  94. data/vendor/assets/javascripts/moment/hi.js +115 -76
  95. data/vendor/assets/javascripts/moment/hr.js +54 -55
  96. data/vendor/assets/javascripts/moment/hu.js +63 -56
  97. data/vendor/assets/javascripts/moment/hy-am.js +44 -48
  98. data/vendor/assets/javascripts/moment/id.js +44 -52
  99. data/vendor/assets/javascripts/moment/is.js +61 -55
  100. data/vendor/assets/javascripts/moment/it-ch.js +64 -0
  101. data/vendor/assets/javascripts/moment/it.js +89 -54
  102. data/vendor/assets/javascripts/moment/ja.js +122 -55
  103. data/vendor/assets/javascripts/moment/jv.js +44 -52
  104. data/vendor/assets/javascripts/moment/ka.js +68 -66
  105. data/vendor/assets/javascripts/moment/kk.js +46 -52
  106. data/vendor/assets/javascripts/moment/km.js +64 -21
  107. data/vendor/assets/javascripts/moment/kn.js +72 -76
  108. data/vendor/assets/javascripts/moment/ko.js +48 -56
  109. data/vendor/assets/javascripts/moment/ku.js +118 -0
  110. data/vendor/assets/javascripts/moment/ky.js +48 -53
  111. data/vendor/assets/javascripts/moment/lb.js +39 -42
  112. data/vendor/assets/javascripts/moment/lo.js +44 -50
  113. data/vendor/assets/javascripts/moment/lt.js +79 -75
  114. data/vendor/assets/javascripts/moment/lv.js +57 -63
  115. data/vendor/assets/javascripts/moment/me.js +53 -48
  116. data/vendor/assets/javascripts/moment/mi.js +15 -21
  117. data/vendor/assets/javascripts/moment/mk.js +46 -52
  118. data/vendor/assets/javascripts/moment/ml.js +51 -53
  119. data/vendor/assets/javascripts/moment/mn.js +99 -0
  120. data/vendor/assets/javascripts/moment/mr.js +140 -100
  121. data/vendor/assets/javascripts/moment/ms-my.js +43 -51
  122. data/vendor/assets/javascripts/moment/ms.js +43 -51
  123. data/vendor/assets/javascripts/moment/mt.js +45 -51
  124. data/vendor/assets/javascripts/moment/my.js +37 -43
  125. data/vendor/assets/javascripts/moment/nb.js +45 -48
  126. data/vendor/assets/javascripts/moment/ne.js +73 -77
  127. data/vendor/assets/javascripts/moment/nl-be.js +70 -57
  128. data/vendor/assets/javascripts/moment/nl.js +72 -57
  129. data/vendor/assets/javascripts/moment/nn.js +46 -47
  130. data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
  131. data/vendor/assets/javascripts/moment/pa-in.js +72 -76
  132. data/vendor/assets/javascripts/moment/pl.js +67 -55
  133. data/vendor/assets/javascripts/moment/pt-br.js +41 -46
  134. data/vendor/assets/javascripts/moment/pt.js +46 -50
  135. data/vendor/assets/javascripts/moment/ro.js +49 -51
  136. data/vendor/assets/javascripts/moment/ru.js +104 -83
  137. data/vendor/assets/javascripts/moment/sd.js +56 -74
  138. data/vendor/assets/javascripts/moment/se.js +41 -46
  139. data/vendor/assets/javascripts/moment/si.js +48 -52
  140. data/vendor/assets/javascripts/moment/sk.js +52 -66
  141. data/vendor/assets/javascripts/moment/sl.js +50 -54
  142. data/vendor/assets/javascripts/moment/sq.js +47 -53
  143. data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
  144. data/vendor/assets/javascripts/moment/sr.js +56 -50
  145. data/vendor/assets/javascripts/moment/ss.js +48 -55
  146. data/vendor/assets/javascripts/moment/sv.js +51 -53
  147. data/vendor/assets/javascripts/moment/sw.js +45 -51
  148. data/vendor/assets/javascripts/moment/ta.js +75 -77
  149. data/vendor/assets/javascripts/moment/te.js +51 -55
  150. data/vendor/assets/javascripts/moment/tet.js +49 -50
  151. data/vendor/assets/javascripts/moment/tg.js +116 -0
  152. data/vendor/assets/javascripts/moment/th.js +45 -49
  153. data/vendor/assets/javascripts/moment/tk.js +91 -0
  154. data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
  155. data/vendor/assets/javascripts/moment/tlh.js +69 -67
  156. data/vendor/assets/javascripts/moment/tr.js +91 -76
  157. data/vendor/assets/javascripts/moment/tzl.js +65 -69
  158. data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
  159. data/vendor/assets/javascripts/moment/tzm.js +38 -44
  160. data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
  161. data/vendor/assets/javascripts/moment/uk.js +78 -68
  162. data/vendor/assets/javascripts/moment/ur.js +56 -74
  163. data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
  164. data/vendor/assets/javascripts/moment/uz.js +42 -50
  165. data/vendor/assets/javascripts/moment/vi.js +54 -55
  166. data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
  167. data/vendor/assets/javascripts/moment/yo.js +44 -52
  168. data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
  169. data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
  170. data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
  171. data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
  172. data/vendor/assets/javascripts/moment.js +2673 -1546
  173. metadata +92 -31
  174. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  175. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  176. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  177. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  178. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  179. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -2,88 +2,96 @@
2
2
  //! locale : Catalan [ca]
3
3
  //! author : Juan G. Hurtado : https://github.com/juanghurtado
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 ca = moment.defineLocale('ca', {
14
- months : {
15
- standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
16
- format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
17
- isFormat: /D[oD]?(\s)+MMMM/
7
+ export default moment.defineLocale('ca', {
8
+ months: {
9
+ standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
10
+ '_'
11
+ ),
12
+ format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
13
+ '_'
14
+ ),
15
+ isFormat: /D[oD]?(\s)+MMMM/,
18
16
  },
19
- monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
20
- monthsParseExact : true,
21
- weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
22
- weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
23
- weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
24
- weekdaysParseExact : true,
25
- longDateFormat : {
26
- LT : 'H:mm',
27
- LTS : 'H:mm:ss',
28
- L : 'DD/MM/YYYY',
29
- LL : 'D MMMM [de] YYYY',
30
- ll : 'D MMM YYYY',
31
- LLL : 'D MMMM [de] YYYY [a les] H:mm',
32
- lll : 'D MMM YYYY, H:mm',
33
- LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
34
- llll : 'ddd D MMM YYYY, H:mm'
17
+ monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
18
+ '_'
19
+ ),
20
+ monthsParseExact: true,
21
+ weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
22
+ '_'
23
+ ),
24
+ weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
25
+ weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
26
+ weekdaysParseExact: true,
27
+ longDateFormat: {
28
+ LT: 'H:mm',
29
+ LTS: 'H:mm:ss',
30
+ L: 'DD/MM/YYYY',
31
+ LL: 'D MMMM [de] YYYY',
32
+ ll: 'D MMM YYYY',
33
+ LLL: 'D MMMM [de] YYYY [a les] H:mm',
34
+ lll: 'D MMM YYYY, H:mm',
35
+ LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
36
+ llll: 'ddd D MMM YYYY, H:mm',
35
37
  },
36
- calendar : {
37
- sameDay : function () {
38
- return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
38
+ calendar: {
39
+ sameDay: function () {
40
+ return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
39
41
  },
40
- nextDay : function () {
41
- return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
42
+ nextDay: function () {
43
+ return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
42
44
  },
43
- nextWeek : function () {
44
- return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
45
+ nextWeek: function () {
46
+ return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
45
47
  },
46
- lastDay : function () {
47
- return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
48
+ lastDay: function () {
49
+ return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
48
50
  },
49
- lastWeek : function () {
50
- return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
51
+ lastWeek: function () {
52
+ return (
53
+ '[el] dddd [passat a ' +
54
+ (this.hours() !== 1 ? 'les' : 'la') +
55
+ '] LT'
56
+ );
51
57
  },
52
- sameElse : 'L'
58
+ sameElse: 'L',
53
59
  },
54
- relativeTime : {
55
- future : 'd\'aquí %s',
56
- past : 'fa %s',
57
- s : 'uns segons',
58
- ss : '%d segons',
59
- m : 'un minut',
60
- mm : '%d minuts',
61
- h : 'una hora',
62
- hh : '%d hores',
63
- d : 'un dia',
64
- dd : '%d dies',
65
- M : 'un mes',
66
- MM : '%d mesos',
67
- y : 'un any',
68
- yy : '%d anys'
60
+ relativeTime: {
61
+ future: "d'aquí %s",
62
+ past: 'fa %s',
63
+ s: 'uns segons',
64
+ ss: '%d segons',
65
+ m: 'un minut',
66
+ mm: '%d minuts',
67
+ h: 'una hora',
68
+ hh: '%d hores',
69
+ d: 'un dia',
70
+ dd: '%d dies',
71
+ M: 'un mes',
72
+ MM: '%d mesos',
73
+ y: 'un any',
74
+ yy: '%d anys',
69
75
  },
70
76
  dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
71
- ordinal : function (number, period) {
72
- var output = (number === 1) ? 'r' :
73
- (number === 2) ? 'n' :
74
- (number === 3) ? 'r' :
75
- (number === 4) ? 't' : 'è';
77
+ ordinal: function (number, period) {
78
+ var output =
79
+ number === 1
80
+ ? 'r'
81
+ : number === 2
82
+ ? 'n'
83
+ : number === 3
84
+ ? 'r'
85
+ : number === 4
86
+ ? 't'
87
+ : 'è';
76
88
  if (period === 'w' || period === 'W') {
77
89
  output = 'a';
78
90
  }
79
91
  return number + output;
80
92
  },
81
- week : {
82
- dow : 1, // Monday is the first day of the week.
83
- doy : 4 // The week that contains Jan 4th is the first week of the year.
84
- }
93
+ week: {
94
+ dow: 1, // Monday is the first day of the week.
95
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
96
+ },
85
97
  });
86
-
87
- return ca;
88
-
89
- })));
@@ -2,117 +2,112 @@
2
2
  //! locale : Czech [cs]
3
3
  //! author : petrbela : https://github.com/petrbela
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
 
7
+ var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
8
+ '_'
9
+ ),
10
+ monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
11
+ monthsParse = [
12
+ /^led/i,
13
+ /^úno/i,
14
+ /^bře/i,
15
+ /^dub/i,
16
+ /^kvě/i,
17
+ /^(čvn|červen$|června)/i,
18
+ /^(čvc|červenec|července)/i,
19
+ /^srp/i,
20
+ /^zář/i,
21
+ /^říj/i,
22
+ /^lis/i,
23
+ /^pro/i,
24
+ ],
25
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
26
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
27
+ monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
12
28
 
13
- var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
14
- var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
15
29
  function plural(n) {
16
- return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
30
+ return n > 1 && n < 5 && ~~(n / 10) !== 1;
17
31
  }
18
32
  function translate(number, withoutSuffix, key, isFuture) {
19
33
  var result = number + ' ';
20
34
  switch (key) {
21
- case 's': // a few seconds / in a few seconds / a few seconds ago
22
- return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
35
+ case 's': // a few seconds / in a few seconds / a few seconds ago
36
+ return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
23
37
  case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
24
38
  if (withoutSuffix || isFuture) {
25
39
  return result + (plural(number) ? 'sekundy' : 'sekund');
26
40
  } else {
27
41
  return result + 'sekundami';
28
42
  }
29
- break;
30
- case 'm': // a minute / in a minute / a minute ago
31
- return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
43
+ case 'm': // a minute / in a minute / a minute ago
44
+ return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
32
45
  case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
33
46
  if (withoutSuffix || isFuture) {
34
47
  return result + (plural(number) ? 'minuty' : 'minut');
35
48
  } else {
36
49
  return result + 'minutami';
37
50
  }
38
- break;
39
- case 'h': // an hour / in an hour / an hour ago
40
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
51
+ case 'h': // an hour / in an hour / an hour ago
52
+ return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
41
53
  case 'hh': // 9 hours / in 9 hours / 9 hours ago
42
54
  if (withoutSuffix || isFuture) {
43
55
  return result + (plural(number) ? 'hodiny' : 'hodin');
44
56
  } else {
45
57
  return result + 'hodinami';
46
58
  }
47
- break;
48
- case 'd': // a day / in a day / a day ago
49
- return (withoutSuffix || isFuture) ? 'den' : 'dnem';
59
+ case 'd': // a day / in a day / a day ago
60
+ return withoutSuffix || isFuture ? 'den' : 'dnem';
50
61
  case 'dd': // 9 days / in 9 days / 9 days ago
51
62
  if (withoutSuffix || isFuture) {
52
63
  return result + (plural(number) ? 'dny' : 'dní');
53
64
  } else {
54
65
  return result + 'dny';
55
66
  }
56
- break;
57
- case 'M': // a month / in a month / a month ago
58
- return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
67
+ case 'M': // a month / in a month / a month ago
68
+ return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
59
69
  case 'MM': // 9 months / in 9 months / 9 months ago
60
70
  if (withoutSuffix || isFuture) {
61
71
  return result + (plural(number) ? 'měsíce' : 'měsíců');
62
72
  } else {
63
73
  return result + 'měsíci';
64
74
  }
65
- break;
66
- case 'y': // a year / in a year / a year ago
67
- return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
75
+ case 'y': // a year / in a year / a year ago
76
+ return withoutSuffix || isFuture ? 'rok' : 'rokem';
68
77
  case 'yy': // 9 years / in 9 years / 9 years ago
69
78
  if (withoutSuffix || isFuture) {
70
79
  return result + (plural(number) ? 'roky' : 'let');
71
80
  } else {
72
81
  return result + 'lety';
73
82
  }
74
- break;
75
83
  }
76
84
  }
77
85
 
78
- var cs = moment.defineLocale('cs', {
79
- months : months,
80
- monthsShort : monthsShort,
81
- monthsParse : (function (months, monthsShort) {
82
- var i, _monthsParse = [];
83
- for (i = 0; i < 12; i++) {
84
- // use custom parser to solve problem with July (červenec)
85
- _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
86
- }
87
- return _monthsParse;
88
- }(months, monthsShort)),
89
- shortMonthsParse : (function (monthsShort) {
90
- var i, _shortMonthsParse = [];
91
- for (i = 0; i < 12; i++) {
92
- _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
93
- }
94
- return _shortMonthsParse;
95
- }(monthsShort)),
96
- longMonthsParse : (function (months) {
97
- var i, _longMonthsParse = [];
98
- for (i = 0; i < 12; i++) {
99
- _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
100
- }
101
- return _longMonthsParse;
102
- }(months)),
103
- weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
104
- weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
105
- weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
106
- longDateFormat : {
86
+ export default moment.defineLocale('cs', {
87
+ months: months,
88
+ monthsShort: monthsShort,
89
+ monthsRegex: monthsRegex,
90
+ monthsShortRegex: monthsRegex,
91
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
92
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
93
+ monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
94
+ monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
95
+ monthsParse: monthsParse,
96
+ longMonthsParse: monthsParse,
97
+ shortMonthsParse: monthsParse,
98
+ weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
99
+ weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
100
+ weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
101
+ longDateFormat: {
107
102
  LT: 'H:mm',
108
- LTS : 'H:mm:ss',
109
- L : 'DD.MM.YYYY',
110
- LL : 'D. MMMM YYYY',
111
- LLL : 'D. MMMM YYYY H:mm',
112
- LLLL : 'dddd D. MMMM YYYY H:mm',
113
- l : 'D. M. YYYY'
103
+ LTS: 'H:mm:ss',
104
+ L: 'DD.MM.YYYY',
105
+ LL: 'D. MMMM YYYY',
106
+ LLL: 'D. MMMM YYYY H:mm',
107
+ LLLL: 'dddd D. MMMM YYYY H:mm',
108
+ l: 'D. M. YYYY',
114
109
  },
115
- calendar : {
110
+ calendar: {
116
111
  sameDay: '[dnes v] LT',
117
112
  nextDay: '[zítra v] LT',
118
113
  nextWeek: function () {
@@ -149,32 +144,28 @@ var cs = moment.defineLocale('cs', {
149
144
  return '[minulou sobotu v] LT';
150
145
  }
151
146
  },
152
- sameElse: 'L'
147
+ sameElse: 'L',
153
148
  },
154
- relativeTime : {
155
- future : 'za %s',
156
- past : 'před %s',
157
- s : translate,
158
- ss : translate,
159
- m : translate,
160
- mm : translate,
161
- h : translate,
162
- hh : translate,
163
- d : translate,
164
- dd : translate,
165
- M : translate,
166
- MM : translate,
167
- y : translate,
168
- yy : translate
149
+ relativeTime: {
150
+ future: 'za %s',
151
+ past: 'před %s',
152
+ s: translate,
153
+ ss: translate,
154
+ m: translate,
155
+ mm: translate,
156
+ h: translate,
157
+ hh: translate,
158
+ d: translate,
159
+ dd: translate,
160
+ M: translate,
161
+ MM: translate,
162
+ y: translate,
163
+ yy: translate,
164
+ },
165
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
166
+ ordinal: '%d.',
167
+ week: {
168
+ dow: 1, // Monday is the first day of the week.
169
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
169
170
  },
170
- dayOfMonthOrdinalParse : /\d{1,2}\./,
171
- ordinal : '%d.',
172
- week : {
173
- dow : 1, // Monday is the first day of the week.
174
- doy : 4 // The week that contains Jan 4th is the first week of the year.
175
- }
176
171
  });
177
-
178
- return cs;
179
-
180
- })));
@@ -2,63 +2,61 @@
2
2
  //! locale : Chuvash [cv]
3
3
  //! author : Anatoly Mironov : https://github.com/mirontoli
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 cv = moment.defineLocale('cv', {
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 : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
24
- LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
25
- LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
7
+ export default moment.defineLocale('cv', {
8
+ months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
12
+ weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
13
+ '_'
14
+ ),
15
+ weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
16
+ weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'HH:mm',
19
+ LTS: 'HH:mm:ss',
20
+ L: 'DD-MM-YYYY',
21
+ LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
22
+ LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
23
+ LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
26
24
  },
27
- calendar : {
25
+ calendar: {
28
26
  sameDay: '[Паян] LT [сехетре]',
29
27
  nextDay: '[Ыран] LT [сехетре]',
30
28
  lastDay: '[Ӗнер] LT [сехетре]',
31
29
  nextWeek: '[Ҫитес] dddd LT [сехетре]',
32
30
  lastWeek: '[Иртнӗ] dddd LT [сехетре]',
33
- sameElse: 'L'
31
+ sameElse: 'L',
34
32
  },
35
- relativeTime : {
36
- future : function (output) {
37
- var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
33
+ relativeTime: {
34
+ future: function (output) {
35
+ var affix = /сехет$/i.exec(output)
36
+ ? 'рен'
37
+ : /ҫул$/i.exec(output)
38
+ ? 'тан'
39
+ : 'ран';
38
40
  return output + affix;
39
41
  },
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 ҫул'
42
+ past: '%s каялла',
43
+ s: 'пӗр-ик ҫеккунт',
44
+ ss: '%d ҫеккунт',
45
+ m: 'пӗр минут',
46
+ mm: '%d минут',
47
+ h: 'пӗр сехет',
48
+ hh: '%d сехет',
49
+ d: 'пӗр кун',
50
+ dd: '%d кун',
51
+ M: 'пӗр уйӑх',
52
+ MM: '%d уйӑх',
53
+ y: 'пӗр ҫул',
54
+ yy: '%d ҫул',
53
55
  },
54
56
  dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
55
- ordinal : '%d-мӗш',
56
- week : {
57
- dow : 1, // Monday is the first day of the week.
58
- doy : 7 // The week that contains Jan 1st is the first week of the year.
59
- }
57
+ ordinal: '%d-мӗш',
58
+ week: {
59
+ dow: 1, // Monday is the first day of the week.
60
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
61
+ },
60
62
  });
61
-
62
- return cv;
63
-
64
- })));
@@ -3,29 +3,29 @@
3
3
  //! author : Robert Allen : https://github.com/robgallen
4
4
  //! author : https://github.com/ryangreaves
5
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';
6
+ import moment from '../moment';
12
7
 
13
-
14
- var cy = moment.defineLocale('cy', {
15
- months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
16
- monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
17
- weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
8
+ export default moment.defineLocale('cy', {
9
+ months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
10
+ '_'
11
+ ),
12
+ monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
13
+ '_'
14
+ ),
15
+ weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
16
+ '_'
17
+ ),
18
18
  weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
19
19
  weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
20
- weekdaysParseExact : true,
20
+ weekdaysParseExact: true,
21
21
  // time formats are the same as en-gb
22
22
  longDateFormat: {
23
23
  LT: 'HH:mm',
24
- LTS : 'HH:mm:ss',
24
+ LTS: 'HH:mm:ss',
25
25
  L: 'DD/MM/YYYY',
26
26
  LL: 'D MMMM YYYY',
27
27
  LLL: 'D MMMM YYYY HH:mm',
28
- LLLL: 'dddd, D MMMM YYYY HH:mm'
28
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
29
29
  },
30
30
  calendar: {
31
31
  sameDay: '[Heddiw am] LT',
@@ -33,7 +33,7 @@ var cy = moment.defineLocale('cy', {
33
33
  nextWeek: 'dddd [am] LT',
34
34
  lastDay: '[Ddoe am] LT',
35
35
  lastWeek: 'dddd [diwethaf am] LT',
36
- sameElse: 'L'
36
+ sameElse: 'L',
37
37
  },
38
38
  relativeTime: {
39
39
  future: 'mewn %s',
@@ -49,7 +49,7 @@ var cy = moment.defineLocale('cy', {
49
49
  M: 'mis',
50
50
  MM: '%d mis',
51
51
  y: 'blwyddyn',
52
- yy: '%d flynedd'
52
+ yy: '%d flynedd',
53
53
  },
54
54
  dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
55
55
  // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
@@ -57,8 +57,27 @@ var cy = moment.defineLocale('cy', {
57
57
  var b = number,
58
58
  output = '',
59
59
  lookup = [
60
- '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
61
- 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
60
+ '',
61
+ 'af',
62
+ 'il',
63
+ 'ydd',
64
+ 'ydd',
65
+ 'ed',
66
+ 'ed',
67
+ 'ed',
68
+ 'fed',
69
+ 'fed',
70
+ 'fed', // 1af to 10fed
71
+ 'eg',
72
+ 'fed',
73
+ 'eg',
74
+ 'eg',
75
+ 'fed',
76
+ 'eg',
77
+ 'eg',
78
+ 'fed',
79
+ 'eg',
80
+ 'fed', // 11eg to 20fed
62
81
  ];
63
82
  if (b > 20) {
64
83
  if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
@@ -71,12 +90,8 @@ var cy = moment.defineLocale('cy', {
71
90
  }
72
91
  return number + output;
73
92
  },
74
- week : {
75
- dow : 1, // Monday is the first day of the week.
76
- doy : 4 // The week that contains Jan 4th is the first week of the year.
77
- }
93
+ week: {
94
+ dow: 1, // Monday is the first day of the week.
95
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
96
+ },
78
97
  });
79
-
80
- return cy;
81
-
82
- })));