momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -1,58 +1,61 @@
1
- // moment.js locale configuration
2
- // locale : faroese (fo)
3
- // author : Ragnar Johannesen : https://github.com/ragnar123
1
+ //! moment.js locale configuration
2
+ //! locale : Faroese [fo]
3
+ //! author : Ragnar Johannesen : https://github.com/ragnar123
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
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
+
12
+
13
+ var fo = moment.defineLocale('fo', {
14
+ months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15
+ monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16
+ weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
17
+ weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
18
+ weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH:mm',
21
+ LTS : 'HH:mm:ss',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY HH:mm',
25
+ LLLL : 'dddd D. MMMM, YYYY HH:mm'
26
+ },
27
+ calendar : {
28
+ sameDay : '[Í dag kl.] LT',
29
+ nextDay : '[Í morgin kl.] LT',
30
+ nextWeek : 'dddd [kl.] LT',
31
+ lastDay : '[Í gjár kl.] LT',
32
+ lastWeek : '[síðstu] dddd [kl] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : 'um %s',
37
+ past : '%s síðani',
38
+ s : 'fá sekund',
39
+ ss : '%d sekundir',
40
+ m : 'ein minutt',
41
+ mm : '%d minuttir',
42
+ h : 'ein tími',
43
+ hh : '%d tímar',
44
+ d : 'ein dagur',
45
+ dd : '%d dagar',
46
+ M : 'ein mánaði',
47
+ MM : '%d mánaðir',
48
+ y : 'eitt ár',
49
+ yy : '%d ár'
50
+ },
51
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
52
+ ordinal : '%d.',
53
+ week : {
54
+ dow : 1, // Monday is the first day of the week.
55
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
12
56
  }
13
- }(function (moment) {
14
- return moment.defineLocale('fo', {
15
- months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
17
- weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
18
- weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
19
- weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY LT',
26
- LLLL : 'dddd D. MMMM, YYYY LT'
27
- },
28
- calendar : {
29
- sameDay : '[Í dag kl.] LT',
30
- nextDay : '[Í morgin kl.] LT',
31
- nextWeek : 'dddd [kl.] LT',
32
- lastDay : '[Í gjár kl.] LT',
33
- lastWeek : '[síðstu] dddd [kl] LT',
34
- sameElse : 'L'
35
- },
36
- relativeTime : {
37
- future : 'um %s',
38
- past : '%s síðani',
39
- s : 'fá sekund',
40
- m : 'ein minutt',
41
- mm : '%d minuttir',
42
- h : 'ein tími',
43
- hh : '%d tímar',
44
- d : 'ein dagur',
45
- dd : '%d dagar',
46
- M : 'ein mánaði',
47
- MM : '%d mánaðir',
48
- y : 'eitt ár',
49
- yy : '%d ár'
50
- },
51
- ordinalParse: /\d{1,2}\./,
52
- ordinal : '%d.',
53
- week : {
54
- dow : 1, // Monday is the first day of the week.
55
- doy : 4 // The week that contains Jan 4th is the first week of the year.
56
- }
57
- });
58
- }));
57
+ });
58
+
59
+ return fo;
60
+
61
+ })));
@@ -1,56 +1,75 @@
1
- // moment.js locale configuration
2
- // locale : canadian french (fr-ca)
3
- // author : Jonathan Abourbih : https://github.com/jonbca
1
+ //! moment.js locale configuration
2
+ //! locale : French (Canada) [fr-ca]
3
+ //! author : Jonathan Abourbih : https://github.com/jonbca
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('fr-ca', {
15
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
16
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
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
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'YYYY-MM-DD',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY LT',
26
- LLLL : 'dddd D MMMM YYYY LT'
27
- },
28
- calendar : {
29
- sameDay: '[Aujourd\'hui à] LT',
30
- nextDay: '[Demain à] LT',
31
- nextWeek: 'dddd [à] LT',
32
- lastDay: '[Hier à] LT',
33
- lastWeek: 'dddd [dernier à] LT',
34
- sameElse: 'L'
35
- },
36
- relativeTime : {
37
- future : 'dans %s',
38
- past : 'il y a %s',
39
- s : 'quelques secondes',
40
- m : 'une minute',
41
- mm : '%d minutes',
42
- h : 'une heure',
43
- hh : '%d heures',
44
- d : 'un jour',
45
- dd : '%d jours',
46
- M : 'un mois',
47
- MM : '%d mois',
48
- y : 'un an',
49
- yy : '%d ans'
50
- },
51
- ordinalParse: /\d{1,2}(er|)/,
52
- ordinal : function (number) {
53
- return number + (number === 1 ? 'er' : '');
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
+
12
+
13
+ var frCa = moment.defineLocale('fr-ca', {
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 : 'YYYY-MM-DD',
25
+ LL : 'D MMMM YYYY',
26
+ LLL : 'D MMMM YYYY HH:mm',
27
+ LLLL : 'dddd D MMMM YYYY HH:mm'
28
+ },
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'
36
+ },
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'
52
+ },
53
+ dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
54
+ ordinal : function (number, period) {
55
+ switch (period) {
56
+ // Words with masculine grammatical gender: mois, trimestre, jour
57
+ default:
58
+ case 'M':
59
+ case 'Q':
60
+ case 'D':
61
+ case 'DDD':
62
+ case 'd':
63
+ return number + (number === 1 ? 'er' : 'e');
64
+
65
+ // Words with feminine grammatical gender: semaine
66
+ case 'w':
67
+ case 'W':
68
+ return number + (number === 1 ? 're' : 'e');
54
69
  }
55
- });
56
- }));
70
+ }
71
+ });
72
+
73
+ return frCa;
74
+
75
+ })));
@@ -0,0 +1,79 @@
1
+ //! moment.js locale configuration
2
+ //! locale : French (Switzerland) [fr-ch]
3
+ //! author : Gaspard Bucher : https://github.com/gaspard
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
+
12
+
13
+ var frCh = moment.defineLocale('fr-ch', {
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'
28
+ },
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'
36
+ },
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'
52
+ },
53
+ dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
54
+ ordinal : function (number, period) {
55
+ switch (period) {
56
+ // Words with masculine grammatical gender: mois, trimestre, jour
57
+ default:
58
+ case 'M':
59
+ case 'Q':
60
+ case 'D':
61
+ case 'DDD':
62
+ case 'd':
63
+ return number + (number === 1 ? 'er' : 'e');
64
+
65
+ // Words with feminine grammatical gender: semaine
66
+ case 'w':
67
+ case 'W':
68
+ return number + (number === 1 ? 're' : 'e');
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
+ });
76
+
77
+ return frCh;
78
+
79
+ })));
@@ -1,60 +1,84 @@
1
- // moment.js locale configuration
2
- // locale : french (fr)
3
- // author : John Fischer : https://github.com/jfroffice
1
+ //! moment.js locale configuration
2
+ //! locale : French [fr]
3
+ //! author : John Fischer : https://github.com/jfroffice
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('fr', {
15
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
16
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
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
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY LT',
26
- LLLL : 'dddd D MMMM YYYY LT'
27
- },
28
- calendar : {
29
- sameDay: '[Aujourd\'hui à] LT',
30
- nextDay: '[Demain à] LT',
31
- nextWeek: 'dddd [à] LT',
32
- lastDay: '[Hier à] LT',
33
- lastWeek: 'dddd [dernier à] LT',
34
- sameElse: 'L'
35
- },
36
- relativeTime : {
37
- future : 'dans %s',
38
- past : 'il y a %s',
39
- s : 'quelques secondes',
40
- m : 'une minute',
41
- mm : '%d minutes',
42
- h : 'une heure',
43
- hh : '%d heures',
44
- d : 'un jour',
45
- dd : '%d jours',
46
- M : 'un mois',
47
- MM : '%d mois',
48
- y : 'un an',
49
- yy : '%d ans'
50
- },
51
- ordinalParse: /\d{1,2}(er|)/,
52
- ordinal : function (number) {
53
- return number + (number === 1 ? 'er' : '');
54
- },
55
- week : {
56
- dow : 1, // Monday is the first day of the week.
57
- doy : 4 // The week that contains Jan 4th is the first week of the year.
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
+
12
+
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'
28
+ },
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'
36
+ },
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'
52
+ },
53
+ dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
54
+ ordinal : function (number, period) {
55
+ switch (period) {
56
+ // TODO: Return 'e' when day of month > 1. Move this case inside
57
+ // block for masculine words below.
58
+ // See https://github.com/moment/moment/issues/3375
59
+ case 'D':
60
+ return number + (number === 1 ? 'er' : '');
61
+
62
+ // Words with masculine grammatical gender: mois, trimestre, jour
63
+ default:
64
+ case 'M':
65
+ case 'Q':
66
+ case 'DDD':
67
+ case 'd':
68
+ return number + (number === 1 ? 'er' : 'e');
69
+
70
+ // Words with feminine grammatical gender: semaine
71
+ case 'w':
72
+ case 'W':
73
+ return number + (number === 1 ? 're' : 'e');
58
74
  }
59
- });
60
- }));
75
+ },
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
+ }
80
+ });
81
+
82
+ return fr;
83
+
84
+ })));
@@ -1,69 +1,76 @@
1
- // moment.js locale configuration
2
- // locale : frisian (fy)
3
- // author : Robin van der Vliet : https://github.com/robin0van0der0v
1
+ //! moment.js locale configuration
2
+ //! locale : Frisian [fy]
3
+ //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
15
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
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
+
12
+
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('_');
16
15
 
17
- return moment.defineLocale('fy', {
18
- months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
19
- monthsShort : function (m, format) {
20
- if (/-MMM-/.test(format)) {
21
- return monthsShortWithoutDots[m.month()];
22
- } else {
23
- return monthsShortWithDots[m.month()];
24
- }
25
- },
26
- weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
27
- weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
28
- weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
29
- longDateFormat : {
30
- LT : 'HH:mm',
31
- LTS : 'LT:ss',
32
- L : 'DD-MM-YYYY',
33
- LL : 'D MMMM YYYY',
34
- LLL : 'D MMMM YYYY LT',
35
- LLLL : 'dddd D MMMM YYYY LT'
36
- },
37
- calendar : {
38
- sameDay: '[hjoed om] LT',
39
- nextDay: '[moarn om] LT',
40
- nextWeek: 'dddd [om] LT',
41
- lastDay: '[juster om] LT',
42
- lastWeek: '[ôfrûne] dddd [om] LT',
43
- sameElse: 'L'
44
- },
45
- relativeTime : {
46
- future : 'oer %s',
47
- past : '%s lyn',
48
- s : 'in pear sekonden',
49
- m : 'ien minút',
50
- mm : '%d minuten',
51
- h : 'ien oere',
52
- hh : '%d oeren',
53
- d : 'ien dei',
54
- dd : '%d dagen',
55
- M : 'ien moanne',
56
- MM : '%d moannen',
57
- y : 'ien jier',
58
- yy : '%d jierren'
59
- },
60
- ordinalParse: /\d{1,2}(ste|de)/,
61
- ordinal : function (number) {
62
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
63
- },
64
- week : {
65
- dow : 1, // Monday is the first day of the week.
66
- doy : 4 // The week that contains Jan 4th is the first week of the year.
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) {
19
+ if (!m) {
20
+ return monthsShortWithDots;
21
+ } else if (/-MMM-/.test(format)) {
22
+ return monthsShortWithoutDots[m.month()];
23
+ } else {
24
+ return monthsShortWithDots[m.month()];
67
25
  }
68
- });
69
- }));
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'
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 number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
67
+ },
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
+ });
73
+
74
+ return fy;
75
+
76
+ })));