momentjs-rails 2.29.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  18. data/vendor/assets/javascripts/moment/af.js +77 -66
  19. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  20. data/vendor/assets/javascripts/moment/ar-kw.js +60 -49
  21. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  22. data/vendor/assets/javascripts/moment/ar-ma.js +60 -49
  23. data/vendor/assets/javascripts/moment/ar-sa.js +109 -98
  24. data/vendor/assets/javascripts/moment/ar-tn.js +60 -49
  25. data/vendor/assets/javascripts/moment/ar.js +191 -180
  26. data/vendor/assets/javascripts/moment/az.js +106 -95
  27. data/vendor/assets/javascripts/moment/be.js +138 -127
  28. data/vendor/assets/javascripts/moment/bg.js +91 -80
  29. data/vendor/assets/javascripts/moment/bm.js +57 -47
  30. data/vendor/assets/javascripts/moment/bn-bd.js +131 -120
  31. data/vendor/assets/javascripts/moment/bn.js +123 -112
  32. data/vendor/assets/javascripts/moment/bo.js +127 -116
  33. data/vendor/assets/javascripts/moment/br.js +162 -151
  34. data/vendor/assets/javascripts/moment/bs.js +150 -139
  35. data/vendor/assets/javascripts/moment/ca.js +94 -83
  36. data/vendor/assets/javascripts/moment/cs.js +172 -161
  37. data/vendor/assets/javascripts/moment/cv.js +67 -56
  38. data/vendor/assets/javascripts/moment/cy.js +101 -90
  39. data/vendor/assets/javascripts/moment/da.js +59 -48
  40. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  41. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  42. data/vendor/assets/javascripts/moment/de.js +81 -70
  43. data/vendor/assets/javascripts/moment/dv.js +95 -84
  44. data/vendor/assets/javascripts/moment/el.js +107 -96
  45. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  46. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  47. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  48. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  50. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  51. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  53. data/vendor/assets/javascripts/moment/eo.js +71 -60
  54. data/vendor/assets/javascripts/moment/es-do.js +105 -94
  55. data/vendor/assets/javascripts/moment/es-mx.js +106 -95
  56. data/vendor/assets/javascripts/moment/es-us.js +105 -94
  57. data/vendor/assets/javascripts/moment/es.js +106 -95
  58. data/vendor/assets/javascripts/moment/et.js +81 -70
  59. data/vendor/assets/javascripts/moment/eu.js +69 -58
  60. data/vendor/assets/javascripts/moment/fa.js +115 -104
  61. data/vendor/assets/javascripts/moment/fi.js +125 -114
  62. data/vendor/assets/javascripts/moment/fil.js +63 -52
  63. data/vendor/assets/javascripts/moment/fo.js +61 -50
  64. data/vendor/assets/javascripts/moment/fr-ca.js +74 -63
  65. data/vendor/assets/javascripts/moment/fr-ch.js +78 -67
  66. data/vendor/assets/javascripts/moment/fr.js +107 -96
  67. data/vendor/assets/javascripts/moment/fy.js +81 -70
  68. data/vendor/assets/javascripts/moment/ga.js +100 -89
  69. data/vendor/assets/javascripts/moment/gd.js +100 -89
  70. data/vendor/assets/javascripts/moment/gl.js +76 -65
  71. data/vendor/assets/javascripts/moment/gom-deva.js +127 -116
  72. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  73. data/vendor/assets/javascripts/moment/gu.js +126 -115
  74. data/vendor/assets/javascripts/moment/he.js +93 -82
  75. data/vendor/assets/javascripts/moment/hi.js +161 -150
  76. data/vendor/assets/javascripts/moment/hr.js +152 -141
  77. data/vendor/assets/javascripts/moment/hu.js +119 -108
  78. data/vendor/assets/javascripts/moment/hy-am.js +94 -83
  79. data/vendor/assets/javascripts/moment/id.js +81 -70
  80. data/vendor/assets/javascripts/moment/is.js +137 -126
  81. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  82. data/vendor/assets/javascripts/moment/it.js +106 -95
  83. data/vendor/assets/javascripts/moment/ja.js +146 -135
  84. data/vendor/assets/javascripts/moment/jv.js +81 -70
  85. data/vendor/assets/javascripts/moment/ka.js +92 -81
  86. data/vendor/assets/javascripts/moment/kk.js +87 -76
  87. data/vendor/assets/javascripts/moment/km.js +107 -96
  88. data/vendor/assets/javascripts/moment/kn.js +128 -117
  89. data/vendor/assets/javascripts/moment/ko.js +80 -69
  90. data/vendor/assets/javascripts/moment/ku.js +123 -112
  91. data/vendor/assets/javascripts/moment/ky.js +89 -78
  92. data/vendor/assets/javascripts/moment/lb.js +132 -121
  93. data/vendor/assets/javascripts/moment/lo.js +71 -60
  94. data/vendor/assets/javascripts/moment/lt.js +125 -114
  95. data/vendor/assets/javascripts/moment/lv.js +96 -85
  96. data/vendor/assets/javascripts/moment/me.js +120 -109
  97. data/vendor/assets/javascripts/moment/mi.js +65 -54
  98. data/vendor/assets/javascripts/moment/mk.js +90 -78
  99. data/vendor/assets/javascripts/moment/ml.js +86 -75
  100. data/vendor/assets/javascripts/moment/mn.js +100 -89
  101. data/vendor/assets/javascripts/moment/mr.js +203 -192
  102. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  103. data/vendor/assets/javascripts/moment/ms.js +81 -70
  104. data/vendor/assets/javascripts/moment/mt.js +61 -50
  105. data/vendor/assets/javascripts/moment/my.js +93 -82
  106. data/vendor/assets/javascripts/moment/nb.js +65 -54
  107. data/vendor/assets/javascripts/moment/ne.js +125 -114
  108. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  109. data/vendor/assets/javascripts/moment/nl.js +105 -94
  110. data/vendor/assets/javascripts/moment/nn.js +65 -54
  111. data/vendor/assets/javascripts/moment/oc-lnc.js +85 -74
  112. data/vendor/assets/javascripts/moment/pa-in.js +126 -115
  113. data/vendor/assets/javascripts/moment/pl.js +137 -126
  114. data/vendor/assets/javascripts/moment/pt-br.js +62 -51
  115. data/vendor/assets/javascripts/moment/pt.js +67 -56
  116. data/vendor/assets/javascripts/moment/ro.js +77 -66
  117. data/vendor/assets/javascripts/moment/ru.js +197 -186
  118. data/vendor/assets/javascripts/moment/sd.js +86 -75
  119. data/vendor/assets/javascripts/moment/se.js +63 -52
  120. data/vendor/assets/javascripts/moment/si.js +74 -63
  121. data/vendor/assets/javascripts/moment/sk.js +145 -134
  122. data/vendor/assets/javascripts/moment/sl.js +171 -160
  123. data/vendor/assets/javascripts/moment/sq.js +69 -58
  124. data/vendor/assets/javascripts/moment/sr-cyrl.js +117 -106
  125. data/vendor/assets/javascripts/moment/sr.js +119 -108
  126. data/vendor/assets/javascripts/moment/ss.js +88 -77
  127. data/vendor/assets/javascripts/moment/sv.js +74 -63
  128. data/vendor/assets/javascripts/moment/sw.js +60 -49
  129. data/vendor/assets/javascripts/moment/ta.js +134 -123
  130. data/vendor/assets/javascripts/moment/te.js +92 -81
  131. data/vendor/assets/javascripts/moment/tet.js +72 -61
  132. data/vendor/assets/javascripts/moment/tg.js +119 -108
  133. data/vendor/assets/javascripts/moment/th.js +70 -59
  134. data/vendor/assets/javascripts/moment/tk.js +96 -85
  135. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  136. data/vendor/assets/javascripts/moment/tlh.js +123 -112
  137. data/vendor/assets/javascripts/moment/tr.js +110 -99
  138. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  139. data/vendor/assets/javascripts/moment/tzm-latn.js +59 -48
  140. data/vendor/assets/javascripts/moment/tzm.js +59 -48
  141. data/vendor/assets/javascripts/moment/ug-cn.js +115 -104
  142. data/vendor/assets/javascripts/moment/uk.js +158 -147
  143. data/vendor/assets/javascripts/moment/ur.js +86 -75
  144. data/vendor/assets/javascripts/moment/uz-latn.js +59 -48
  145. data/vendor/assets/javascripts/moment/uz.js +57 -46
  146. data/vendor/assets/javascripts/moment/vi.js +84 -73
  147. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  148. data/vendor/assets/javascripts/moment/yo.js +59 -48
  149. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  150. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  151. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  153. data/vendor/assets/javascripts/moment.js +4961 -4953
  154. metadata +30 -2
@@ -2,103 +2,114 @@
2
2
  //! locale : French [fr]
3
3
  //! author : John Fischer : https://github.com/jfroffice
4
4
 
5
- import moment from '../moment';
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';
6
11
 
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
+ //! moment.js locale configuration
24
13
 
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',
50
- },
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',
58
- },
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',
76
- },
77
- dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
78
- ordinal: function (number, period) {
79
- switch (period) {
80
- // TODO: Return 'e' when day of month > 1. Move this case inside
81
- // block for masculine words below.
82
- // See https://github.com/moment/moment/issues/3375
83
- case 'D':
84
- return number + (number === 1 ? 'er' : '');
14
+ var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
15
+ monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
16
+ 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,
17
+ monthsParse = [
18
+ /^janv/i,
19
+ /^févr/i,
20
+ /^mars/i,
21
+ /^avr/i,
22
+ /^mai/i,
23
+ /^juin/i,
24
+ /^juil/i,
25
+ /^août/i,
26
+ /^sept/i,
27
+ /^oct/i,
28
+ /^nov/i,
29
+ /^déc/i,
30
+ ];
85
31
 
86
- // Words with masculine grammatical gender: mois, trimestre, jour
87
- default:
88
- case 'M':
89
- case 'Q':
90
- case 'DDD':
91
- case 'd':
92
- return number + (number === 1 ? 'er' : 'e');
32
+ var fr = moment.defineLocale('fr', {
33
+ months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
37
+ '_'
38
+ ),
39
+ monthsRegex: monthsRegex,
40
+ monthsShortRegex: monthsRegex,
41
+ monthsStrictRegex: monthsStrictRegex,
42
+ monthsShortStrictRegex: monthsShortStrictRegex,
43
+ monthsParse: monthsParse,
44
+ longMonthsParse: monthsParse,
45
+ shortMonthsParse: monthsParse,
46
+ weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
47
+ weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
48
+ weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
49
+ weekdaysParseExact: true,
50
+ longDateFormat: {
51
+ LT: 'HH:mm',
52
+ LTS: 'HH:mm:ss',
53
+ L: 'DD/MM/YYYY',
54
+ LL: 'D MMMM YYYY',
55
+ LLL: 'D MMMM YYYY HH:mm',
56
+ LLLL: 'dddd D MMMM YYYY HH:mm',
57
+ },
58
+ calendar: {
59
+ sameDay: '[Aujourd’hui à] LT',
60
+ nextDay: '[Demain à] LT',
61
+ nextWeek: 'dddd [à] LT',
62
+ lastDay: '[Hier à] LT',
63
+ lastWeek: 'dddd [dernier à] LT',
64
+ sameElse: 'L',
65
+ },
66
+ relativeTime: {
67
+ future: 'dans %s',
68
+ past: 'il y a %s',
69
+ s: 'quelques secondes',
70
+ ss: '%d secondes',
71
+ m: 'une minute',
72
+ mm: '%d minutes',
73
+ h: 'une heure',
74
+ hh: '%d heures',
75
+ d: 'un jour',
76
+ dd: '%d jours',
77
+ w: 'une semaine',
78
+ ww: '%d semaines',
79
+ M: 'un mois',
80
+ MM: '%d mois',
81
+ y: 'un an',
82
+ yy: '%d ans',
83
+ },
84
+ dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
85
+ ordinal: function (number, period) {
86
+ switch (period) {
87
+ // TODO: Return 'e' when day of month > 1. Move this case inside
88
+ // block for masculine words below.
89
+ // See https://github.com/moment/moment/issues/3375
90
+ case 'D':
91
+ return number + (number === 1 ? 'er' : '');
93
92
 
94
- // Words with feminine grammatical gender: semaine
95
- case 'w':
96
- case 'W':
97
- return number + (number === 1 ? 're' : 'e');
98
- }
99
- },
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
- },
104
- });
93
+ // Words with masculine grammatical gender: mois, trimestre, jour
94
+ default:
95
+ case 'M':
96
+ case 'Q':
97
+ case 'DDD':
98
+ case 'd':
99
+ return number + (number === 1 ? 'er' : 'e');
100
+
101
+ // Words with feminine grammatical gender: semaine
102
+ case 'w':
103
+ case 'W':
104
+ return number + (number === 1 ? 're' : 'e');
105
+ }
106
+ },
107
+ week: {
108
+ dow: 1, // Monday is the first day of the week.
109
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
110
+ },
111
+ });
112
+
113
+ return fr;
114
+
115
+ })));
@@ -2,76 +2,87 @@
2
2
  //! locale : Frisian [fy]
3
3
  //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4
4
 
5
- import moment from '../moment';
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';
6
11
 
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
+ //! moment.js locale configuration
13
13
 
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
- if (!m) {
20
- return monthsShortWithDots;
21
- } else if (/-MMM-/.test(format)) {
22
- return monthsShortWithoutDots[m.month()];
23
- } else {
24
- return monthsShortWithDots[m.month()];
25
- }
26
- },
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',
41
- },
42
- calendar: {
43
- sameDay: '[hjoed om] LT',
44
- nextDay: '[moarn om] LT',
45
- nextWeek: 'dddd [om] LT',
46
- lastDay: '[juster om] LT',
47
- lastWeek: '[ôfrûne] dddd [om] LT',
48
- sameElse: 'L',
49
- },
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',
65
- },
66
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
67
- ordinal: function (number) {
68
- return (
69
- number +
70
- (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
14
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
15
+ '_'
16
+ ),
17
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
18
+ '_'
71
19
  );
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.
76
- },
77
- });
20
+
21
+ var fy = moment.defineLocale('fy', {
22
+ months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
23
+ '_'
24
+ ),
25
+ monthsShort: function (m, format) {
26
+ if (!m) {
27
+ return monthsShortWithDots;
28
+ } else if (/-MMM-/.test(format)) {
29
+ return monthsShortWithoutDots[m.month()];
30
+ } else {
31
+ return monthsShortWithDots[m.month()];
32
+ }
33
+ },
34
+ monthsParseExact: true,
35
+ weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
36
+ '_'
37
+ ),
38
+ weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
39
+ weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
40
+ weekdaysParseExact: true,
41
+ longDateFormat: {
42
+ LT: 'HH:mm',
43
+ LTS: 'HH:mm:ss',
44
+ L: 'DD-MM-YYYY',
45
+ LL: 'D MMMM YYYY',
46
+ LLL: 'D MMMM YYYY HH:mm',
47
+ LLLL: 'dddd D MMMM YYYY HH:mm',
48
+ },
49
+ calendar: {
50
+ sameDay: '[hjoed om] LT',
51
+ nextDay: '[moarn om] LT',
52
+ nextWeek: 'dddd [om] LT',
53
+ lastDay: '[juster om] LT',
54
+ lastWeek: '[ôfrûne] dddd [om] LT',
55
+ sameElse: 'L',
56
+ },
57
+ relativeTime: {
58
+ future: 'oer %s',
59
+ past: '%s lyn',
60
+ s: 'in pear sekonden',
61
+ ss: '%d sekonden',
62
+ m: 'ien minút',
63
+ mm: '%d minuten',
64
+ h: 'ien oere',
65
+ hh: '%d oeren',
66
+ d: 'ien dei',
67
+ dd: '%d dagen',
68
+ M: 'ien moanne',
69
+ MM: '%d moannen',
70
+ y: 'ien jier',
71
+ yy: '%d jierren',
72
+ },
73
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
74
+ ordinal: function (number) {
75
+ return (
76
+ number +
77
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
78
+ );
79
+ },
80
+ week: {
81
+ dow: 1, // Monday is the first day of the week.
82
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
83
+ },
84
+ });
85
+
86
+ return fy;
87
+
88
+ })));
@@ -2,94 +2,105 @@
2
2
  //! locale : Irish or Irish Gaelic [ga]
3
3
  //! author : André Silva : https://github.com/askpt
4
4
 
5
- import moment from '../moment';
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';
6
11
 
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'];
12
+ //! moment.js locale configuration
46
13
 
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
- });
14
+ var months = [
15
+ 'Eanáir',
16
+ 'Feabhra',
17
+ 'Márta',
18
+ 'Aibreán',
19
+ 'Bealtaine',
20
+ 'Meitheamh',
21
+ 'Iúil',
22
+ 'Lúnasa',
23
+ 'Meán Fómhair',
24
+ 'Deireadh Fómhair',
25
+ 'Samhain',
26
+ 'Nollaig',
27
+ ],
28
+ monthsShort = [
29
+ 'Ean',
30
+ 'Feabh',
31
+ 'Márt',
32
+ 'Aib',
33
+ 'Beal',
34
+ 'Meith',
35
+ 'Iúil',
36
+ 'Lún',
37
+ 'M.F.',
38
+ 'D.F.',
39
+ 'Samh',
40
+ 'Noll',
41
+ ],
42
+ weekdays = [
43
+ ' Domhnaigh',
44
+ ' Luain',
45
+ ' Máirt',
46
+ 'Dé Céadaoin',
47
+ 'Déardaoin',
48
+ 'Dé hAoine',
49
+ ' Sathairn',
50
+ ],
51
+ weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
52
+ weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
53
+
54
+ var ga = moment.defineLocale('ga', {
55
+ months: months,
56
+ monthsShort: monthsShort,
57
+ monthsParseExact: true,
58
+ weekdays: weekdays,
59
+ weekdaysShort: weekdaysShort,
60
+ weekdaysMin: weekdaysMin,
61
+ longDateFormat: {
62
+ LT: 'HH:mm',
63
+ LTS: 'HH:mm:ss',
64
+ L: 'DD/MM/YYYY',
65
+ LL: 'D MMMM YYYY',
66
+ LLL: 'D MMMM YYYY HH:mm',
67
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
68
+ },
69
+ calendar: {
70
+ sameDay: '[Inniu ag] LT',
71
+ nextDay: '[Amárach ag] LT',
72
+ nextWeek: 'dddd [ag] LT',
73
+ lastDay: '[Inné ag] LT',
74
+ lastWeek: 'dddd [seo caite] [ag] LT',
75
+ sameElse: 'L',
76
+ },
77
+ relativeTime: {
78
+ future: 'i %s',
79
+ past: '%s ó shin',
80
+ s: 'cúpla soicind',
81
+ ss: '%d soicind',
82
+ m: 'nóiméad',
83
+ mm: '%d nóiméad',
84
+ h: 'uair an chloig',
85
+ hh: '%d uair an chloig',
86
+ d: 'lá',
87
+ dd: '%d lá',
88
+ M: 'mí',
89
+ MM: '%d míonna',
90
+ y: 'bliain',
91
+ yy: '%d bliain',
92
+ },
93
+ dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
94
+ ordinal: function (number) {
95
+ var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
96
+ return number + output;
97
+ },
98
+ week: {
99
+ dow: 1, // Monday is the first day of the week.
100
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
101
+ },
102
+ });
103
+
104
+ return ga;
105
+
106
+ })));