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,56 +2,80 @@
2
2
  //! locale : French [fr]
3
3
  //! author : John Fischer : https://github.com/jfroffice
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 monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
8
+ monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
9
+ monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
10
+ monthsParse = [
11
+ /^janv/i,
12
+ /^févr/i,
13
+ /^mars/i,
14
+ /^avr/i,
15
+ /^mai/i,
16
+ /^juin/i,
17
+ /^juil/i,
18
+ /^août/i,
19
+ /^sept/i,
20
+ /^oct/i,
21
+ /^nov/i,
22
+ /^déc/i,
23
+ ];
12
24
 
13
- var fr = moment.defineLocale('fr', {
14
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16
- monthsParseExact : true,
17
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
18
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
19
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
20
- weekdaysParseExact : true,
21
- longDateFormat : {
22
- LT : 'HH:mm',
23
- LTS : 'HH:mm:ss',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D MMMM YYYY',
26
- LLL : 'D MMMM YYYY HH:mm',
27
- LLLL : 'dddd D MMMM YYYY HH:mm'
25
+ export default moment.defineLocale('fr', {
26
+ months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
27
+ '_'
28
+ ),
29
+ monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
30
+ '_'
31
+ ),
32
+ monthsRegex: monthsRegex,
33
+ monthsShortRegex: monthsRegex,
34
+ monthsStrictRegex: monthsStrictRegex,
35
+ monthsShortStrictRegex: monthsShortStrictRegex,
36
+ monthsParse: monthsParse,
37
+ longMonthsParse: monthsParse,
38
+ shortMonthsParse: monthsParse,
39
+ weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
40
+ weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
41
+ weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
42
+ weekdaysParseExact: true,
43
+ longDateFormat: {
44
+ LT: 'HH:mm',
45
+ LTS: 'HH:mm:ss',
46
+ L: 'DD/MM/YYYY',
47
+ LL: 'D MMMM YYYY',
48
+ LLL: 'D MMMM YYYY HH:mm',
49
+ LLLL: 'dddd D MMMM YYYY HH:mm',
28
50
  },
29
- calendar : {
30
- sameDay : '[Aujourd’hui à] LT',
31
- nextDay : '[Demain à] LT',
32
- nextWeek : 'dddd [à] LT',
33
- lastDay : '[Hier à] LT',
34
- lastWeek : 'dddd [dernier à] LT',
35
- sameElse : 'L'
51
+ calendar: {
52
+ sameDay: '[Aujourd’hui à] LT',
53
+ nextDay: '[Demain à] LT',
54
+ nextWeek: 'dddd [à] LT',
55
+ lastDay: '[Hier à] LT',
56
+ lastWeek: 'dddd [dernier à] LT',
57
+ sameElse: 'L',
36
58
  },
37
- relativeTime : {
38
- future : 'dans %s',
39
- past : 'il y a %s',
40
- s : 'quelques secondes',
41
- ss : '%d secondes',
42
- m : 'une minute',
43
- mm : '%d minutes',
44
- h : 'une heure',
45
- hh : '%d heures',
46
- d : 'un jour',
47
- dd : '%d jours',
48
- M : 'un mois',
49
- MM : '%d mois',
50
- y : 'un an',
51
- yy : '%d ans'
59
+ relativeTime: {
60
+ future: 'dans %s',
61
+ past: 'il y a %s',
62
+ s: 'quelques secondes',
63
+ ss: '%d secondes',
64
+ m: 'une minute',
65
+ mm: '%d minutes',
66
+ h: 'une heure',
67
+ hh: '%d heures',
68
+ d: 'un jour',
69
+ dd: '%d jours',
70
+ w: 'une semaine',
71
+ ww: '%d semaines',
72
+ M: 'un mois',
73
+ MM: '%d mois',
74
+ y: 'un an',
75
+ yy: '%d ans',
52
76
  },
53
77
  dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
54
- ordinal : function (number, period) {
78
+ ordinal: function (number, period) {
55
79
  switch (period) {
56
80
  // TODO: Return 'e' when day of month > 1. Move this case inside
57
81
  // block for masculine words below.
@@ -73,12 +97,8 @@ var fr = moment.defineLocale('fr', {
73
97
  return number + (number === 1 ? 're' : 'e');
74
98
  }
75
99
  },
76
- week : {
77
- dow : 1, // Monday is the first day of the week.
78
- doy : 4 // The week that contains Jan 4th is the first week of the year.
79
- }
100
+ week: {
101
+ dow: 1, // Monday is the first day of the week.
102
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
103
+ },
80
104
  });
81
-
82
- return fr;
83
-
84
- })));
@@ -2,20 +2,20 @@
2
2
  //! locale : Frisian [fy]
3
3
  //! author : Robin van der Vliet : https://github.com/robin0van0der0v
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 monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
8
+ '_'
9
+ ),
10
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
11
+ '_'
12
+ );
12
13
 
13
- var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
14
- var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
15
-
16
- var fy = moment.defineLocale('fy', {
17
- months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
18
- monthsShort : function (m, format) {
14
+ export default moment.defineLocale('fy', {
15
+ months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: function (m, format) {
19
19
  if (!m) {
20
20
  return monthsShortWithDots;
21
21
  } else if (/-MMM-/.test(format)) {
@@ -24,53 +24,54 @@ var fy = moment.defineLocale('fy', {
24
24
  return monthsShortWithDots[m.month()];
25
25
  }
26
26
  },
27
- monthsParseExact : true,
28
- weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
29
- weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
30
- weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
31
- weekdaysParseExact : true,
32
- longDateFormat : {
33
- LT : 'HH:mm',
34
- LTS : 'HH:mm:ss',
35
- L : 'DD-MM-YYYY',
36
- LL : 'D MMMM YYYY',
37
- LLL : 'D MMMM YYYY HH:mm',
38
- LLLL : 'dddd D MMMM YYYY HH:mm'
27
+ monthsParseExact: true,
28
+ weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
29
+ '_'
30
+ ),
31
+ weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
32
+ weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
33
+ weekdaysParseExact: true,
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',
39
41
  },
40
- calendar : {
42
+ calendar: {
41
43
  sameDay: '[hjoed om] LT',
42
44
  nextDay: '[moarn om] LT',
43
45
  nextWeek: 'dddd [om] LT',
44
46
  lastDay: '[juster om] LT',
45
47
  lastWeek: '[ôfrûne] dddd [om] LT',
46
- sameElse: 'L'
48
+ sameElse: 'L',
47
49
  },
48
- relativeTime : {
49
- future : 'oer %s',
50
- past : '%s lyn',
51
- s : 'in pear sekonden',
52
- ss : '%d sekonden',
53
- m : 'ien minút',
54
- mm : '%d minuten',
55
- h : 'ien oere',
56
- hh : '%d oeren',
57
- d : 'ien dei',
58
- dd : '%d dagen',
59
- M : 'ien moanne',
60
- MM : '%d moannen',
61
- y : 'ien jier',
62
- yy : '%d jierren'
50
+ relativeTime: {
51
+ future: 'oer %s',
52
+ past: '%s lyn',
53
+ s: 'in pear sekonden',
54
+ ss: '%d sekonden',
55
+ m: 'ien minút',
56
+ mm: '%d minuten',
57
+ h: 'ien oere',
58
+ hh: '%d oeren',
59
+ d: 'ien dei',
60
+ dd: '%d dagen',
61
+ M: 'ien moanne',
62
+ MM: '%d moannen',
63
+ y: 'ien jier',
64
+ yy: '%d jierren',
63
65
  },
64
66
  dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
65
- ordinal : function (number) {
66
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
67
+ ordinal: function (number) {
68
+ return (
69
+ number +
70
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
71
+ );
72
+ },
73
+ week: {
74
+ dow: 1, // Monday is the first day of the week.
75
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
67
76
  },
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.
71
- }
72
77
  });
73
-
74
- return fy;
75
-
76
- })));
@@ -0,0 +1,95 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Irish or Irish Gaelic [ga]
3
+ //! author : André Silva : https://github.com/askpt
4
+
5
+ import moment from '../moment';
6
+
7
+ var months = [
8
+ 'Eanáir',
9
+ 'Feabhra',
10
+ 'Márta',
11
+ 'Aibreán',
12
+ 'Bealtaine',
13
+ 'Meitheamh',
14
+ 'Iúil',
15
+ 'Lúnasa',
16
+ 'Meán Fómhair',
17
+ 'Deireadh Fómhair',
18
+ 'Samhain',
19
+ 'Nollaig',
20
+ ],
21
+ monthsShort = [
22
+ 'Ean',
23
+ 'Feabh',
24
+ 'Márt',
25
+ 'Aib',
26
+ 'Beal',
27
+ 'Meith',
28
+ 'Iúil',
29
+ 'Lún',
30
+ 'M.F.',
31
+ 'D.F.',
32
+ 'Samh',
33
+ 'Noll',
34
+ ],
35
+ weekdays = [
36
+ 'Dé Domhnaigh',
37
+ 'Dé Luain',
38
+ 'Dé Máirt',
39
+ 'Dé Céadaoin',
40
+ 'Déardaoin',
41
+ 'Dé hAoine',
42
+ 'Dé Sathairn',
43
+ ],
44
+ weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
45
+ weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
46
+
47
+ export default moment.defineLocale('ga', {
48
+ months: months,
49
+ monthsShort: monthsShort,
50
+ monthsParseExact: true,
51
+ weekdays: weekdays,
52
+ weekdaysShort: weekdaysShort,
53
+ weekdaysMin: weekdaysMin,
54
+ longDateFormat: {
55
+ LT: 'HH:mm',
56
+ LTS: 'HH:mm:ss',
57
+ L: 'DD/MM/YYYY',
58
+ LL: 'D MMMM YYYY',
59
+ LLL: 'D MMMM YYYY HH:mm',
60
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
61
+ },
62
+ calendar: {
63
+ sameDay: '[Inniu ag] LT',
64
+ nextDay: '[Amárach ag] LT',
65
+ nextWeek: 'dddd [ag] LT',
66
+ lastDay: '[Inné ag] LT',
67
+ lastWeek: 'dddd [seo caite] [ag] LT',
68
+ sameElse: 'L',
69
+ },
70
+ relativeTime: {
71
+ future: 'i %s',
72
+ past: '%s ó shin',
73
+ s: 'cúpla soicind',
74
+ ss: '%d soicind',
75
+ m: 'nóiméad',
76
+ mm: '%d nóiméad',
77
+ h: 'uair an chloig',
78
+ hh: '%d uair an chloig',
79
+ d: 'lá',
80
+ dd: '%d lá',
81
+ M: 'mí',
82
+ MM: '%d míonna',
83
+ y: 'bliain',
84
+ yy: '%d bliain',
85
+ },
86
+ dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
87
+ ordinal: function (number) {
88
+ var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
89
+ return number + output;
90
+ },
91
+ week: {
92
+ dow: 1, // Monday is the first day of the week.
93
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
94
+ },
95
+ });
@@ -2,76 +2,94 @@
2
2
  //! locale : Scottish Gaelic [gd]
3
3
  //! author : Jon Ashdown : https://github.com/jonashdown
4
4
 
5
- ;(function (global, factory) {
6
- typeof exports === 'object' && typeof module !== 'undefined'
7
- && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
- factory(global.moment)
10
- }(this, (function (moment) { 'use strict';
11
-
5
+ import moment from '../moment';
12
6
 
13
7
  var months = [
14
- 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
15
- ];
16
-
17
- var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
18
-
19
- var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
20
-
21
- var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
8
+ 'Am Faoilleach',
9
+ 'An Gearran',
10
+ 'Am Màrt',
11
+ 'An Giblean',
12
+ 'An Cèitean',
13
+ 'An t-Ògmhios',
14
+ 'An t-Iuchar',
15
+ 'An Lùnastal',
16
+ 'An t-Sultain',
17
+ 'An Dàmhair',
18
+ 'An t-Samhain',
19
+ 'An Dùbhlachd',
20
+ ],
21
+ monthsShort = [
22
+ 'Faoi',
23
+ 'Gear',
24
+ 'Màrt',
25
+ 'Gibl',
26
+ 'Cèit',
27
+ 'Ògmh',
28
+ 'Iuch',
29
+ 'Lùn',
30
+ 'Sult',
31
+ 'Dàmh',
32
+ 'Samh',
33
+ 'Dùbh',
34
+ ],
35
+ weekdays = [
36
+ 'Didòmhnaich',
37
+ 'Diluain',
38
+ 'Dimàirt',
39
+ 'Diciadain',
40
+ 'Diardaoin',
41
+ 'Dihaoine',
42
+ 'Disathairne',
43
+ ],
44
+ weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
45
+ weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
22
46
 
23
- var weekdaysMin = ['', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
24
-
25
- var gd = moment.defineLocale('gd', {
26
- months : months,
27
- monthsShort : monthsShort,
28
- monthsParseExact : true,
29
- weekdays : weekdays,
30
- weekdaysShort : weekdaysShort,
31
- weekdaysMin : weekdaysMin,
32
- longDateFormat : {
33
- LT : 'HH:mm',
34
- LTS : 'HH:mm:ss',
35
- L : 'DD/MM/YYYY',
36
- LL : 'D MMMM YYYY',
37
- LLL : 'D MMMM YYYY HH:mm',
38
- LLLL : 'dddd, D MMMM YYYY HH:mm'
47
+ export default moment.defineLocale('gd', {
48
+ months: months,
49
+ monthsShort: monthsShort,
50
+ monthsParseExact: true,
51
+ weekdays: weekdays,
52
+ weekdaysShort: weekdaysShort,
53
+ weekdaysMin: weekdaysMin,
54
+ longDateFormat: {
55
+ LT: 'HH:mm',
56
+ LTS: 'HH:mm:ss',
57
+ L: 'DD/MM/YYYY',
58
+ LL: 'D MMMM YYYY',
59
+ LLL: 'D MMMM YYYY HH:mm',
60
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
39
61
  },
40
- calendar : {
41
- sameDay : '[An-diugh aig] LT',
42
- nextDay : '[A-màireach aig] LT',
43
- nextWeek : 'dddd [aig] LT',
44
- lastDay : '[An-dè aig] LT',
45
- lastWeek : 'dddd [seo chaidh] [aig] LT',
46
- sameElse : 'L'
62
+ calendar: {
63
+ sameDay: '[An-diugh aig] LT',
64
+ nextDay: '[A-màireach aig] LT',
65
+ nextWeek: 'dddd [aig] LT',
66
+ lastDay: '[An-dè aig] LT',
67
+ lastWeek: 'dddd [seo chaidh] [aig] LT',
68
+ sameElse: 'L',
47
69
  },
48
- relativeTime : {
49
- future : 'ann an %s',
50
- past : 'bho chionn %s',
51
- s : 'beagan diogan',
52
- ss : '%d diogan',
53
- m : 'mionaid',
54
- mm : '%d mionaidean',
55
- h : 'uair',
56
- hh : '%d uairean',
57
- d : 'latha',
58
- dd : '%d latha',
59
- M : 'mìos',
60
- MM : '%d mìosan',
61
- y : 'bliadhna',
62
- yy : '%d bliadhna'
70
+ relativeTime: {
71
+ future: 'ann an %s',
72
+ past: 'bho chionn %s',
73
+ s: 'beagan diogan',
74
+ ss: '%d diogan',
75
+ m: 'mionaid',
76
+ mm: '%d mionaidean',
77
+ h: 'uair',
78
+ hh: '%d uairean',
79
+ d: 'latha',
80
+ dd: '%d latha',
81
+ M: 'mìos',
82
+ MM: '%d mìosan',
83
+ y: 'bliadhna',
84
+ yy: '%d bliadhna',
63
85
  },
64
- dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
65
- ordinal : function (number) {
86
+ dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
87
+ ordinal: function (number) {
66
88
  var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
67
89
  return number + output;
68
90
  },
69
- week : {
70
- dow : 1, // Monday is the first day of the week.
71
- doy : 4 // The week that contains Jan 4th is the first week of the year.
72
- }
91
+ week: {
92
+ dow: 1, // Monday is the first day of the week.
93
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
94
+ },
73
95
  });
74
-
75
- return gd;
76
-
77
- })));
@@ -2,77 +2,73 @@
2
2
  //! locale : Galician [gl]
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 gl = moment.defineLocale('gl', {
14
- months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
15
- monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
7
+ export default moment.defineLocale('gl', {
8
+ months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
12
+ '_'
13
+ ),
16
14
  monthsParseExact: true,
17
- weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
18
- weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
19
- weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
20
- weekdaysParseExact : true,
21
- longDateFormat : {
22
- LT : 'H:mm',
23
- LTS : 'H:mm:ss',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D [de] MMMM [de] YYYY',
26
- LLL : 'D [de] MMMM [de] YYYY H:mm',
27
- LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
15
+ weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
16
+ weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
17
+ weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
18
+ weekdaysParseExact: true,
19
+ longDateFormat: {
20
+ LT: 'H:mm',
21
+ LTS: 'H:mm:ss',
22
+ L: 'DD/MM/YYYY',
23
+ LL: 'D [de] MMMM [de] YYYY',
24
+ LLL: 'D [de] MMMM [de] YYYY H:mm',
25
+ LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
28
26
  },
29
- calendar : {
30
- sameDay : function () {
31
- return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
27
+ calendar: {
28
+ sameDay: function () {
29
+ return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
32
30
  },
33
- nextDay : function () {
34
- return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
31
+ nextDay: function () {
32
+ return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
35
33
  },
36
- nextWeek : function () {
37
- return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
34
+ nextWeek: function () {
35
+ return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
38
36
  },
39
- lastDay : function () {
40
- return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
37
+ lastDay: function () {
38
+ return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
41
39
  },
42
- lastWeek : function () {
43
- return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
40
+ lastWeek: function () {
41
+ return (
42
+ '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
43
+ );
44
44
  },
45
- sameElse : 'L'
45
+ sameElse: 'L',
46
46
  },
47
- relativeTime : {
48
- future : function (str) {
47
+ relativeTime: {
48
+ future: function (str) {
49
49
  if (str.indexOf('un') === 0) {
50
50
  return 'n' + str;
51
51
  }
52
52
  return 'en ' + str;
53
53
  },
54
- past : 'hai %s',
55
- s : 'uns segundos',
56
- ss : '%d segundos',
57
- m : 'un minuto',
58
- mm : '%d minutos',
59
- h : 'unha hora',
60
- hh : '%d horas',
61
- d : 'un día',
62
- dd : '%d días',
63
- M : 'un mes',
64
- MM : '%d meses',
65
- y : 'un ano',
66
- yy : '%d anos'
54
+ past: 'hai %s',
55
+ s: 'uns segundos',
56
+ ss: '%d segundos',
57
+ m: 'un minuto',
58
+ mm: '%d minutos',
59
+ h: 'unha hora',
60
+ hh: '%d horas',
61
+ d: 'un día',
62
+ dd: '%d días',
63
+ M: 'un mes',
64
+ MM: '%d meses',
65
+ y: 'un ano',
66
+ yy: '%d anos',
67
+ },
68
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
69
+ ordinal: '%dº',
70
+ week: {
71
+ dow: 1, // Monday is the first day of the week.
72
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
67
73
  },
68
- dayOfMonthOrdinalParse : /\d{1,2}º/,
69
- ordinal : '%dº',
70
- week : {
71
- dow : 1, // Monday is the first day of the week.
72
- doy : 4 // The week that contains Jan 4th is the first week of the year.
73
- }
74
74
  });
75
-
76
- return gl;
77
-
78
- })));