momentjs-rails 2.29.4 → 2.29.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/vendor/assets/javascripts/moment/af.js +77 -66
  5. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  6. data/vendor/assets/javascripts/moment/ar-kw.js +59 -48
  7. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  8. data/vendor/assets/javascripts/moment/ar-ma.js +59 -48
  9. data/vendor/assets/javascripts/moment/ar-sa.js +108 -97
  10. data/vendor/assets/javascripts/moment/ar-tn.js +59 -48
  11. data/vendor/assets/javascripts/moment/ar.js +191 -180
  12. data/vendor/assets/javascripts/moment/az.js +105 -94
  13. data/vendor/assets/javascripts/moment/be.js +137 -126
  14. data/vendor/assets/javascripts/moment/bg.js +91 -80
  15. data/vendor/assets/javascripts/moment/bm.js +57 -47
  16. data/vendor/assets/javascripts/moment/bn-bd.js +130 -119
  17. data/vendor/assets/javascripts/moment/bn.js +122 -111
  18. data/vendor/assets/javascripts/moment/bo.js +125 -114
  19. data/vendor/assets/javascripts/moment/br.js +165 -154
  20. data/vendor/assets/javascripts/moment/bs.js +149 -138
  21. data/vendor/assets/javascripts/moment/ca.js +99 -88
  22. data/vendor/assets/javascripts/moment/cs.js +179 -168
  23. data/vendor/assets/javascripts/moment/cv.js +66 -55
  24. data/vendor/assets/javascripts/moment/cy.js +100 -89
  25. data/vendor/assets/javascripts/moment/da.js +59 -48
  26. data/vendor/assets/javascripts/moment/de-at.js +79 -68
  27. data/vendor/assets/javascripts/moment/de-ch.js +78 -69
  28. data/vendor/assets/javascripts/moment/de.js +79 -68
  29. data/vendor/assets/javascripts/moment/dv.js +95 -84
  30. data/vendor/assets/javascripts/moment/el.js +107 -96
  31. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  32. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  33. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  34. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  35. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  36. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  37. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  38. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  39. data/vendor/assets/javascripts/moment/eo.js +71 -60
  40. data/vendor/assets/javascripts/moment/es-do.js +108 -97
  41. data/vendor/assets/javascripts/moment/es-mx.js +109 -98
  42. data/vendor/assets/javascripts/moment/es-us.js +108 -97
  43. data/vendor/assets/javascripts/moment/es.js +109 -98
  44. data/vendor/assets/javascripts/moment/et.js +79 -68
  45. data/vendor/assets/javascripts/moment/eu.js +69 -58
  46. data/vendor/assets/javascripts/moment/fa.js +116 -105
  47. data/vendor/assets/javascripts/moment/fi.js +126 -115
  48. data/vendor/assets/javascripts/moment/fil.js +63 -52
  49. data/vendor/assets/javascripts/moment/fo.js +60 -49
  50. data/vendor/assets/javascripts/moment/fr-ca.js +73 -62
  51. data/vendor/assets/javascripts/moment/fr-ch.js +77 -66
  52. data/vendor/assets/javascripts/moment/fr.js +109 -98
  53. data/vendor/assets/javascripts/moment/fy.js +80 -69
  54. data/vendor/assets/javascripts/moment/ga.js +100 -89
  55. data/vendor/assets/javascripts/moment/gd.js +100 -89
  56. data/vendor/assets/javascripts/moment/gl.js +75 -64
  57. data/vendor/assets/javascripts/moment/gom-deva.js +129 -118
  58. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  59. data/vendor/assets/javascripts/moment/gu.js +125 -114
  60. data/vendor/assets/javascripts/moment/he.js +93 -82
  61. data/vendor/assets/javascripts/moment/hi.js +165 -154
  62. data/vendor/assets/javascripts/moment/hr.js +154 -143
  63. data/vendor/assets/javascripts/moment/hu.js +117 -106
  64. data/vendor/assets/javascripts/moment/hy-am.js +96 -85
  65. data/vendor/assets/javascripts/moment/id.js +81 -70
  66. data/vendor/assets/javascripts/moment/is.js +136 -125
  67. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  68. data/vendor/assets/javascripts/moment/it.js +106 -95
  69. data/vendor/assets/javascripts/moment/ja.js +146 -135
  70. data/vendor/assets/javascripts/moment/jv.js +81 -70
  71. data/vendor/assets/javascripts/moment/ka.js +91 -80
  72. data/vendor/assets/javascripts/moment/kk.js +87 -76
  73. data/vendor/assets/javascripts/moment/km.js +106 -95
  74. data/vendor/assets/javascripts/moment/kn.js +127 -116
  75. data/vendor/assets/javascripts/moment/ko.js +80 -69
  76. data/vendor/assets/javascripts/moment/ku.js +123 -112
  77. data/vendor/assets/javascripts/moment/ky.js +89 -78
  78. data/vendor/assets/javascripts/moment/lb.js +132 -121
  79. data/vendor/assets/javascripts/moment/lo.js +70 -59
  80. data/vendor/assets/javascripts/moment/lt.js +123 -112
  81. data/vendor/assets/javascripts/moment/lv.js +95 -84
  82. data/vendor/assets/javascripts/moment/me.js +119 -108
  83. data/vendor/assets/javascripts/moment/mi.js +64 -53
  84. data/vendor/assets/javascripts/moment/mk.js +90 -78
  85. data/vendor/assets/javascripts/moment/ml.js +86 -75
  86. data/vendor/assets/javascripts/moment/mn.js +101 -90
  87. data/vendor/assets/javascripts/moment/mr.js +202 -191
  88. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  89. data/vendor/assets/javascripts/moment/ms.js +81 -70
  90. data/vendor/assets/javascripts/moment/mt.js +60 -49
  91. data/vendor/assets/javascripts/moment/my.js +93 -82
  92. data/vendor/assets/javascripts/moment/nb.js +64 -53
  93. data/vendor/assets/javascripts/moment/ne.js +124 -113
  94. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  95. data/vendor/assets/javascripts/moment/nl.js +105 -94
  96. data/vendor/assets/javascripts/moment/nn.js +64 -53
  97. data/vendor/assets/javascripts/moment/oc-lnc.js +87 -76
  98. data/vendor/assets/javascripts/moment/pa-in.js +125 -114
  99. data/vendor/assets/javascripts/moment/pl.js +138 -127
  100. data/vendor/assets/javascripts/moment/pt-br.js +61 -50
  101. data/vendor/assets/javascripts/moment/pt.js +66 -55
  102. data/vendor/assets/javascripts/moment/ro.js +76 -65
  103. data/vendor/assets/javascripts/moment/ru.js +198 -187
  104. data/vendor/assets/javascripts/moment/sd.js +86 -75
  105. data/vendor/assets/javascripts/moment/se.js +61 -50
  106. data/vendor/assets/javascripts/moment/si.js +73 -62
  107. data/vendor/assets/javascripts/moment/sk.js +146 -135
  108. data/vendor/assets/javascripts/moment/sl.js +170 -159
  109. data/vendor/assets/javascripts/moment/sq.js +69 -58
  110. data/vendor/assets/javascripts/moment/sr-cyrl.js +126 -115
  111. data/vendor/assets/javascripts/moment/sr.js +128 -117
  112. data/vendor/assets/javascripts/moment/ss.js +87 -76
  113. data/vendor/assets/javascripts/moment/sv.js +74 -63
  114. data/vendor/assets/javascripts/moment/sw.js +59 -48
  115. data/vendor/assets/javascripts/moment/ta.js +132 -121
  116. data/vendor/assets/javascripts/moment/te.js +92 -81
  117. data/vendor/assets/javascripts/moment/tet.js +72 -61
  118. data/vendor/assets/javascripts/moment/tg.js +120 -109
  119. data/vendor/assets/javascripts/moment/th.js +69 -58
  120. data/vendor/assets/javascripts/moment/tk.js +96 -85
  121. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  122. data/vendor/assets/javascripts/moment/tlh.js +120 -109
  123. data/vendor/assets/javascripts/moment/tr.js +110 -99
  124. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  125. data/vendor/assets/javascripts/moment/tzm-latn.js +58 -47
  126. data/vendor/assets/javascripts/moment/tzm.js +58 -47
  127. data/vendor/assets/javascripts/moment/ug-cn.js +114 -103
  128. data/vendor/assets/javascripts/moment/uk.js +163 -152
  129. data/vendor/assets/javascripts/moment/ur.js +86 -75
  130. data/vendor/assets/javascripts/moment/uz-latn.js +58 -47
  131. data/vendor/assets/javascripts/moment/uz.js +57 -46
  132. data/vendor/assets/javascripts/moment/vi.js +83 -72
  133. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  134. data/vendor/assets/javascripts/moment/yo.js +59 -48
  135. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  136. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  137. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  138. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  139. data/vendor/assets/javascripts/moment.js +5018 -5010
  140. metadata +2 -2
@@ -2,107 +2,118 @@
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 =
8
- /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
9
- monthsShortStrictRegex =
10
- /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
11
- monthsRegex =
12
- /(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,
13
- monthsParse = [
14
- /^janv/i,
15
- /^févr/i,
16
- /^mars/i,
17
- /^avr/i,
18
- /^mai/i,
19
- /^juin/i,
20
- /^juil/i,
21
- /^août/i,
22
- /^sept/i,
23
- /^oct/i,
24
- /^nov/i,
25
- /^déc/i,
26
- ];
12
+ //! moment.js locale configuration
27
13
 
28
- export default moment.defineLocale('fr', {
29
- months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
30
- '_'
31
- ),
32
- monthsShort:
33
- 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
14
+ var monthsStrictRegex =
15
+ /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
16
+ monthsShortStrictRegex =
17
+ /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
18
+ monthsRegex =
19
+ /(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,
20
+ monthsParse = [
21
+ /^janv/i,
22
+ /^févr/i,
23
+ /^mars/i,
24
+ /^avr/i,
25
+ /^mai/i,
26
+ /^juin/i,
27
+ /^juil/i,
28
+ /^août/i,
29
+ /^sept/i,
30
+ /^oct/i,
31
+ /^nov/i,
32
+ /^déc/i,
33
+ ];
34
+
35
+ var fr = moment.defineLocale('fr', {
36
+ months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
34
37
  '_'
35
38
  ),
36
- monthsRegex: monthsRegex,
37
- monthsShortRegex: monthsRegex,
38
- monthsStrictRegex: monthsStrictRegex,
39
- monthsShortStrictRegex: monthsShortStrictRegex,
40
- monthsParse: monthsParse,
41
- longMonthsParse: monthsParse,
42
- shortMonthsParse: monthsParse,
43
- weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
44
- weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
45
- weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
46
- weekdaysParseExact: true,
47
- longDateFormat: {
48
- LT: 'HH:mm',
49
- LTS: 'HH:mm:ss',
50
- L: 'DD/MM/YYYY',
51
- LL: 'D MMMM YYYY',
52
- LLL: 'D MMMM YYYY HH:mm',
53
- LLLL: 'dddd D MMMM YYYY HH:mm',
54
- },
55
- calendar: {
56
- sameDay: '[Aujourd’hui à] LT',
57
- nextDay: '[Demain à] LT',
58
- nextWeek: 'dddd [à] LT',
59
- lastDay: '[Hier à] LT',
60
- lastWeek: 'dddd [dernier à] LT',
61
- sameElse: 'L',
62
- },
63
- relativeTime: {
64
- future: 'dans %s',
65
- past: 'il y a %s',
66
- s: 'quelques secondes',
67
- ss: '%d secondes',
68
- m: 'une minute',
69
- mm: '%d minutes',
70
- h: 'une heure',
71
- hh: '%d heures',
72
- d: 'un jour',
73
- dd: '%d jours',
74
- w: 'une semaine',
75
- ww: '%d semaines',
76
- M: 'un mois',
77
- MM: '%d mois',
78
- y: 'un an',
79
- yy: '%d ans',
80
- },
81
- dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
82
- ordinal: function (number, period) {
83
- switch (period) {
84
- // TODO: Return 'e' when day of month > 1. Move this case inside
85
- // block for masculine words below.
86
- // See https://github.com/moment/moment/issues/3375
87
- case 'D':
88
- return number + (number === 1 ? 'er' : '');
39
+ monthsShort:
40
+ 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
41
+ '_'
42
+ ),
43
+ monthsRegex: monthsRegex,
44
+ monthsShortRegex: monthsRegex,
45
+ monthsStrictRegex: monthsStrictRegex,
46
+ monthsShortStrictRegex: monthsShortStrictRegex,
47
+ monthsParse: monthsParse,
48
+ longMonthsParse: monthsParse,
49
+ shortMonthsParse: monthsParse,
50
+ weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
51
+ weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
52
+ weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
53
+ weekdaysParseExact: true,
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: '[Aujourd’hui à] LT',
64
+ nextDay: '[Demain à] LT',
65
+ nextWeek: 'dddd [à] LT',
66
+ lastDay: '[Hier à] LT',
67
+ lastWeek: 'dddd [dernier à] LT',
68
+ sameElse: 'L',
69
+ },
70
+ relativeTime: {
71
+ future: 'dans %s',
72
+ past: 'il y a %s',
73
+ s: 'quelques secondes',
74
+ ss: '%d secondes',
75
+ m: 'une minute',
76
+ mm: '%d minutes',
77
+ h: 'une heure',
78
+ hh: '%d heures',
79
+ d: 'un jour',
80
+ dd: '%d jours',
81
+ w: 'une semaine',
82
+ ww: '%d semaines',
83
+ M: 'un mois',
84
+ MM: '%d mois',
85
+ y: 'un an',
86
+ yy: '%d ans',
87
+ },
88
+ dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
89
+ ordinal: function (number, period) {
90
+ switch (period) {
91
+ // TODO: Return 'e' when day of month > 1. Move this case inside
92
+ // block for masculine words below.
93
+ // See https://github.com/moment/moment/issues/3375
94
+ case 'D':
95
+ return number + (number === 1 ? 'er' : '');
96
+
97
+ // Words with masculine grammatical gender: mois, trimestre, jour
98
+ default:
99
+ case 'M':
100
+ case 'Q':
101
+ case 'DDD':
102
+ case 'd':
103
+ return number + (number === 1 ? 'er' : 'e');
104
+
105
+ // Words with feminine grammatical gender: semaine
106
+ case 'w':
107
+ case 'W':
108
+ return number + (number === 1 ? 're' : 'e');
109
+ }
110
+ },
111
+ week: {
112
+ dow: 1, // Monday is the first day of the week.
113
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
114
+ },
115
+ });
89
116
 
90
- // Words with masculine grammatical gender: mois, trimestre, jour
91
- default:
92
- case 'M':
93
- case 'Q':
94
- case 'DDD':
95
- case 'd':
96
- return number + (number === 1 ? 'er' : 'e');
117
+ return fr;
97
118
 
98
- // Words with feminine grammatical gender: semaine
99
- case 'w':
100
- case 'W':
101
- return number + (number === 1 ? 're' : 'e');
102
- }
103
- },
104
- week: {
105
- dow: 1, // Monday is the first day of the week.
106
- doy: 4, // The week that contains Jan 4th is the first week of the year.
107
- },
108
- });
119
+ })));
@@ -2,74 +2,85 @@
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 =
8
- 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
9
- monthsShortWithoutDots =
10
- 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
12
+ //! moment.js locale configuration
11
13
 
12
- export default moment.defineLocale('fy', {
13
- months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
14
- '_'
15
- ),
16
- monthsShort: function (m, format) {
17
- if (!m) {
18
- return monthsShortWithDots;
19
- } else if (/-MMM-/.test(format)) {
20
- return monthsShortWithoutDots[m.month()];
21
- } else {
22
- return monthsShortWithDots[m.month()];
23
- }
24
- },
25
- monthsParseExact: true,
26
- weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
27
- '_'
28
- ),
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',
39
- },
40
- calendar: {
41
- sameDay: '[hjoed om] LT',
42
- nextDay: '[moarn om] LT',
43
- nextWeek: 'dddd [om] LT',
44
- lastDay: '[juster om] LT',
45
- lastWeek: '[ôfrûne] dddd [om] LT',
46
- sameElse: 'L',
47
- },
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',
63
- },
64
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
65
- ordinal: function (number) {
66
- return (
67
- number +
68
- (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
69
- );
70
- },
71
- week: {
72
- dow: 1, // Monday is the first day of the week.
73
- doy: 4, // The week that contains Jan 4th is the first week of the year.
74
- },
75
- });
14
+ var monthsShortWithDots =
15
+ 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
16
+ monthsShortWithoutDots =
17
+ 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
18
+
19
+ var fy = moment.defineLocale('fy', {
20
+ months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
21
+ '_'
22
+ ),
23
+ monthsShort: function (m, format) {
24
+ if (!m) {
25
+ return monthsShortWithDots;
26
+ } else if (/-MMM-/.test(format)) {
27
+ return monthsShortWithoutDots[m.month()];
28
+ } else {
29
+ return monthsShortWithDots[m.month()];
30
+ }
31
+ },
32
+ monthsParseExact: true,
33
+ weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
34
+ '_'
35
+ ),
36
+ weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
37
+ weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
38
+ weekdaysParseExact: true,
39
+ longDateFormat: {
40
+ LT: 'HH:mm',
41
+ LTS: 'HH:mm:ss',
42
+ L: 'DD-MM-YYYY',
43
+ LL: 'D MMMM YYYY',
44
+ LLL: 'D MMMM YYYY HH:mm',
45
+ LLLL: 'dddd D MMMM YYYY HH:mm',
46
+ },
47
+ calendar: {
48
+ sameDay: '[hjoed om] LT',
49
+ nextDay: '[moarn om] LT',
50
+ nextWeek: 'dddd [om] LT',
51
+ lastDay: '[juster om] LT',
52
+ lastWeek: '[ôfrûne] dddd [om] LT',
53
+ sameElse: 'L',
54
+ },
55
+ relativeTime: {
56
+ future: 'oer %s',
57
+ past: '%s lyn',
58
+ s: 'in pear sekonden',
59
+ ss: '%d sekonden',
60
+ m: 'ien minút',
61
+ mm: '%d minuten',
62
+ h: 'ien oere',
63
+ hh: '%d oeren',
64
+ d: 'ien dei',
65
+ dd: '%d dagen',
66
+ M: 'ien moanne',
67
+ MM: '%d moannen',
68
+ y: 'ien jier',
69
+ yy: '%d jierren',
70
+ },
71
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
72
+ ordinal: function (number) {
73
+ return (
74
+ number +
75
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
76
+ );
77
+ },
78
+ week: {
79
+ dow: 1, // Monday is the first day of the week.
80
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
81
+ },
82
+ });
83
+
84
+ return fy;
85
+
86
+ })));
@@ -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
+ })));