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
@@ -0,0 +1,77 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Scottish Gaelic [gd]
3
+ //! author : Jon Ashdown : https://github.com/jonashdown
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 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'];
22
+
23
+ var weekdaysMin = ['Dò', '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'
39
+ },
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'
47
+ },
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'
63
+ },
64
+ dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
65
+ ordinal : function (number) {
66
+ var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
67
+ return number + output;
68
+ },
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
+ }
73
+ });
74
+
75
+ return gd;
76
+
77
+ })));
@@ -1,73 +1,78 @@
1
- // moment.js locale configuration
2
- // locale : galician (gl)
3
- // author : Juan G. Hurtado : https://github.com/juanghurtado
1
+ //! moment.js locale configuration
2
+ //! locale : Galician [gl]
3
+ //! author : Juan G. Hurtado : https://github.com/juanghurtado
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('gl', {
15
- months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
16
- monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
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
- longDateFormat : {
21
- LT : 'H: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'
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 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('_'),
16
+ 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'
28
+ },
29
+ calendar : {
30
+ sameDay : function () {
31
+ return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
32
+ },
33
+ nextDay : function () {
34
+ return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
35
+ },
36
+ nextWeek : function () {
37
+ return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
27
38
  },
28
- calendar : {
29
- sameDay : function () {
30
- return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
31
- },
32
- nextDay : function () {
33
- return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
34
- },
35
- nextWeek : function () {
36
- return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
37
- },
38
- lastDay : function () {
39
- return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
40
- },
41
- lastWeek : function () {
42
- return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
43
- },
44
- sameElse : 'L'
39
+ lastDay : function () {
40
+ return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
45
41
  },
46
- relativeTime : {
47
- future : function (str) {
48
- if (str === 'uns segundos') {
49
- return 'nuns segundos';
50
- }
51
- return 'en ' + str;
52
- },
53
- past : 'hai %s',
54
- s : 'uns segundos',
55
- m : 'un minuto',
56
- mm : '%d minutos',
57
- h : 'unha hora',
58
- hh : '%d horas',
59
- d : 'un día',
60
- dd : '%d días',
61
- M : 'un mes',
62
- MM : '%d meses',
63
- y : 'un ano',
64
- yy : '%d anos'
42
+ lastWeek : function () {
43
+ return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
65
44
  },
66
- ordinalParse : /\d{1,2}º/,
67
- ordinal : '%dº',
68
- week : {
69
- dow : 1, // Monday is the first day of the week.
70
- doy : 7 // The week that contains Jan 1st is the first week of the year.
71
- }
72
- });
73
- }));
45
+ sameElse : 'L'
46
+ },
47
+ relativeTime : {
48
+ future : function (str) {
49
+ if (str.indexOf('un') === 0) {
50
+ return 'n' + str;
51
+ }
52
+ return 'en ' + str;
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'
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.
73
+ }
74
+ });
75
+
76
+ return gl;
77
+
78
+ })));
@@ -0,0 +1,124 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Konkani Latin script [gom-latn]
3
+ //! author : The Discoverer : https://github.com/WikiDiscoverer
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
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
14
+ var format = {
15
+ 's': ['thodde secondanim', 'thodde second'],
16
+ 'ss': [number + ' secondanim', number + ' second'],
17
+ 'm': ['eka mintan', 'ek minute'],
18
+ 'mm': [number + ' mintanim', number + ' mintam'],
19
+ 'h': ['eka horan', 'ek hor'],
20
+ 'hh': [number + ' horanim', number + ' hor'],
21
+ 'd': ['eka disan', 'ek dis'],
22
+ 'dd': [number + ' disanim', number + ' dis'],
23
+ 'M': ['eka mhoinean', 'ek mhoino'],
24
+ 'MM': [number + ' mhoineanim', number + ' mhoine'],
25
+ 'y': ['eka vorsan', 'ek voros'],
26
+ 'yy': [number + ' vorsanim', number + ' vorsam']
27
+ };
28
+ return withoutSuffix ? format[key][0] : format[key][1];
29
+ }
30
+
31
+ var gomLatn = moment.defineLocale('gom-latn', {
32
+ months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
33
+ monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
34
+ monthsParseExact : true,
35
+ weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
36
+ weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
37
+ weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
38
+ weekdaysParseExact : true,
39
+ longDateFormat : {
40
+ LT : 'A h:mm [vazta]',
41
+ LTS : 'A h:mm:ss [vazta]',
42
+ L : 'DD-MM-YYYY',
43
+ LL : 'D MMMM YYYY',
44
+ LLL : 'D MMMM YYYY A h:mm [vazta]',
45
+ LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
46
+ llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
47
+ },
48
+ calendar : {
49
+ sameDay: '[Aiz] LT',
50
+ nextDay: '[Faleam] LT',
51
+ nextWeek: '[Ieta to] dddd[,] LT',
52
+ lastDay: '[Kal] LT',
53
+ lastWeek: '[Fatlo] dddd[,] LT',
54
+ sameElse: 'L'
55
+ },
56
+ relativeTime : {
57
+ future : '%s',
58
+ past : '%s adim',
59
+ s : processRelativeTime,
60
+ ss : processRelativeTime,
61
+ m : processRelativeTime,
62
+ mm : processRelativeTime,
63
+ h : processRelativeTime,
64
+ hh : processRelativeTime,
65
+ d : processRelativeTime,
66
+ dd : processRelativeTime,
67
+ M : processRelativeTime,
68
+ MM : processRelativeTime,
69
+ y : processRelativeTime,
70
+ yy : processRelativeTime
71
+ },
72
+ dayOfMonthOrdinalParse : /\d{1,2}(er)/,
73
+ ordinal : function (number, period) {
74
+ switch (period) {
75
+ // the ordinal 'er' only applies to day of the month
76
+ case 'D':
77
+ return number + 'er';
78
+ default:
79
+ case 'M':
80
+ case 'Q':
81
+ case 'DDD':
82
+ case 'd':
83
+ case 'w':
84
+ case 'W':
85
+ return number;
86
+ }
87
+ },
88
+ week : {
89
+ dow : 1, // Monday is the first day of the week.
90
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
91
+ },
92
+ meridiemParse: /rati|sokalli|donparam|sanje/,
93
+ meridiemHour : function (hour, meridiem) {
94
+ if (hour === 12) {
95
+ hour = 0;
96
+ }
97
+ if (meridiem === 'rati') {
98
+ return hour < 4 ? hour : hour + 12;
99
+ } else if (meridiem === 'sokalli') {
100
+ return hour;
101
+ } else if (meridiem === 'donparam') {
102
+ return hour > 12 ? hour : hour + 12;
103
+ } else if (meridiem === 'sanje') {
104
+ return hour + 12;
105
+ }
106
+ },
107
+ meridiem : function (hour, minute, isLower) {
108
+ if (hour < 4) {
109
+ return 'rati';
110
+ } else if (hour < 12) {
111
+ return 'sokalli';
112
+ } else if (hour < 16) {
113
+ return 'donparam';
114
+ } else if (hour < 20) {
115
+ return 'sanje';
116
+ } else {
117
+ return 'rati';
118
+ }
119
+ }
120
+ });
121
+
122
+ return gomLatn;
123
+
124
+ })));
@@ -0,0 +1,125 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Gujarati [gu]
3
+ //! author : Kaushik Thanki : https://github.com/Kaushik1987
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 symbolMap = {
14
+ '1': '૧',
15
+ '2': '૨',
16
+ '3': '૩',
17
+ '4': '૪',
18
+ '5': '૫',
19
+ '6': '૬',
20
+ '7': '૭',
21
+ '8': '૮',
22
+ '9': '૯',
23
+ '0': '૦'
24
+ };
25
+ var numberMap = {
26
+ '૧': '1',
27
+ '૨': '2',
28
+ '૩': '3',
29
+ '૪': '4',
30
+ '૫': '5',
31
+ '૬': '6',
32
+ '૭': '7',
33
+ '૮': '8',
34
+ '૯': '9',
35
+ '૦': '0'
36
+ };
37
+
38
+ var gu = moment.defineLocale('gu', {
39
+ months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
40
+ monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
41
+ monthsParseExact: true,
42
+ weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
43
+ weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
44
+ weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
45
+ longDateFormat: {
46
+ LT: 'A h:mm વાગ્યે',
47
+ LTS: 'A h:mm:ss વાગ્યે',
48
+ L: 'DD/MM/YYYY',
49
+ LL: 'D MMMM YYYY',
50
+ LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
51
+ LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
52
+ },
53
+ calendar: {
54
+ sameDay: '[આજ] LT',
55
+ nextDay: '[કાલે] LT',
56
+ nextWeek: 'dddd, LT',
57
+ lastDay: '[ગઇકાલે] LT',
58
+ lastWeek: '[પાછલા] dddd, LT',
59
+ sameElse: 'L'
60
+ },
61
+ relativeTime: {
62
+ future: '%s મા',
63
+ past: '%s પેહલા',
64
+ s: 'અમુક પળો',
65
+ ss: '%d સેકંડ',
66
+ m: 'એક મિનિટ',
67
+ mm: '%d મિનિટ',
68
+ h: 'એક કલાક',
69
+ hh: '%d કલાક',
70
+ d: 'એક દિવસ',
71
+ dd: '%d દિવસ',
72
+ M: 'એક મહિનો',
73
+ MM: '%d મહિનો',
74
+ y: 'એક વર્ષ',
75
+ yy: '%d વર્ષ'
76
+ },
77
+ preparse: function (string) {
78
+ return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
79
+ return numberMap[match];
80
+ });
81
+ },
82
+ postformat: function (string) {
83
+ return string.replace(/\d/g, function (match) {
84
+ return symbolMap[match];
85
+ });
86
+ },
87
+ // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
88
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
89
+ meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
90
+ meridiemHour: function (hour, meridiem) {
91
+ if (hour === 12) {
92
+ hour = 0;
93
+ }
94
+ if (meridiem === 'રાત') {
95
+ return hour < 4 ? hour : hour + 12;
96
+ } else if (meridiem === 'સવાર') {
97
+ return hour;
98
+ } else if (meridiem === 'બપોર') {
99
+ return hour >= 10 ? hour : hour + 12;
100
+ } else if (meridiem === 'સાંજ') {
101
+ return hour + 12;
102
+ }
103
+ },
104
+ meridiem: function (hour, minute, isLower) {
105
+ if (hour < 4) {
106
+ return 'રાત';
107
+ } else if (hour < 10) {
108
+ return 'સવાર';
109
+ } else if (hour < 17) {
110
+ return 'બપોર';
111
+ } else if (hour < 20) {
112
+ return 'સાંજ';
113
+ } else {
114
+ return 'રાત';
115
+ }
116
+ },
117
+ week: {
118
+ dow: 0, // Sunday is the first day of the week.
119
+ doy: 6 // The week that contains Jan 1st is the first week of the year.
120
+ }
121
+ });
122
+
123
+ return gu;
124
+
125
+ })));
@@ -1,80 +1,100 @@
1
- // moment.js locale configuration
2
- // locale : Hebrew (he)
3
- // author : Tomer Cohen : https://github.com/tomer
4
- // author : Moshe Simantov : https://github.com/DevelopmentIL
5
- // author : Tal Ater : https://github.com/TalAter
1
+ //! moment.js locale configuration
2
+ //! locale : Hebrew [he]
3
+ //! author : Tomer Cohen : https://github.com/tomer
4
+ //! author : Moshe Simantov : https://github.com/DevelopmentIL
5
+ //! author : Tal Ater : https://github.com/TalAter
6
6
 
7
- (function (factory) {
8
- if (typeof define === 'function' && define.amd) {
9
- define(['moment'], factory); // AMD
10
- } else if (typeof exports === 'object') {
11
- module.exports = factory(require('../moment')); // Node
12
- } else {
13
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14
- }
15
- }(function (moment) {
16
- return moment.defineLocale('he', {
17
- months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
18
- monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
19
- weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
20
- weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
21
- weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
22
- longDateFormat : {
23
- LT : 'HH:mm',
24
- LTS : 'LT:ss',
25
- L : 'DD/MM/YYYY',
26
- LL : 'D [ב]MMMM YYYY',
27
- LLL : 'D [ב]MMMM YYYY LT',
28
- LLLL : 'dddd, D [ב]MMMM YYYY LT',
29
- l : 'D/M/YYYY',
30
- ll : 'D MMM YYYY',
31
- lll : 'D MMM YYYY LT',
32
- llll : 'ddd, D MMM YYYY LT'
7
+ ;(function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+
15
+ var he = moment.defineLocale('he', {
16
+ months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
17
+ monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
18
+ weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
19
+ weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
20
+ weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
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
+ l : 'D/M/YYYY',
29
+ ll : 'D MMM YYYY',
30
+ lll : 'D MMM YYYY HH:mm',
31
+ llll : 'ddd, D MMM YYYY HH:mm'
32
+ },
33
+ calendar : {
34
+ sameDay : '[היום ב־]LT',
35
+ nextDay : '[מחר ב־]LT',
36
+ nextWeek : 'dddd [בשעה] LT',
37
+ lastDay : '[אתמול ב־]LT',
38
+ lastWeek : '[ביום] dddd [האחרון בשעה] LT',
39
+ sameElse : 'L'
40
+ },
41
+ relativeTime : {
42
+ future : 'בעוד %s',
43
+ past : 'לפני %s',
44
+ s : 'מספר שניות',
45
+ ss : '%d שניות',
46
+ m : 'דקה',
47
+ mm : '%d דקות',
48
+ h : 'שעה',
49
+ hh : function (number) {
50
+ if (number === 2) {
51
+ return 'שעתיים';
52
+ }
53
+ return number + ' שעות';
33
54
  },
34
- calendar : {
35
- sameDay : '[היום ב־]LT',
36
- nextDay : '[מחר ב־]LT',
37
- nextWeek : 'dddd [בשעה] LT',
38
- lastDay : '[אתמול ב־]LT',
39
- lastWeek : '[ביום] dddd [האחרון בשעה] LT',
40
- sameElse : 'L'
55
+ d : 'יום',
56
+ dd : function (number) {
57
+ if (number === 2) {
58
+ return 'יומיים';
59
+ }
60
+ return number + ' ימים';
41
61
  },
42
- relativeTime : {
43
- future : 'בעוד %s',
44
- past : 'לפני %s',
45
- s : 'מספר שניות',
46
- m : 'דקה',
47
- mm : '%d דקות',
48
- h : 'שעה',
49
- hh : function (number) {
50
- if (number === 2) {
51
- return 'שעתיים';
52
- }
53
- return number + ' שעות';
54
- },
55
- d : 'יום',
56
- dd : function (number) {
57
- if (number === 2) {
58
- return 'יומיים';
59
- }
60
- return number + ' ימים';
61
- },
62
- M : 'חודש',
63
- MM : function (number) {
64
- if (number === 2) {
65
- return 'חודשיים';
66
- }
67
- return number + ' חודשים';
68
- },
69
- y : 'שנה',
70
- yy : function (number) {
71
- if (number === 2) {
72
- return 'שנתיים';
73
- } else if (number % 10 === 0 && number !== 10) {
74
- return number + ' שנה';
75
- }
76
- return number + ' שנים';
62
+ M : 'חודש',
63
+ MM : function (number) {
64
+ if (number === 2) {
65
+ return 'חודשיים';
77
66
  }
67
+ return number + ' חודשים';
68
+ },
69
+ y : 'שנה',
70
+ yy : function (number) {
71
+ if (number === 2) {
72
+ return 'שנתיים';
73
+ } else if (number % 10 === 0 && number !== 10) {
74
+ return number + ' שנה';
75
+ }
76
+ return number + ' שנים';
77
+ }
78
+ },
79
+ meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
80
+ isPM : function (input) {
81
+ return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
82
+ },
83
+ meridiem : function (hour, minute, isLower) {
84
+ if (hour < 5) {
85
+ return 'לפנות בוקר';
86
+ } else if (hour < 10) {
87
+ return 'בבוקר';
88
+ } else if (hour < 12) {
89
+ return isLower ? 'לפנה"צ' : 'לפני הצהריים';
90
+ } else if (hour < 18) {
91
+ return isLower ? 'אחה"צ' : 'אחרי הצהריים';
92
+ } else {
93
+ return 'בערב';
78
94
  }
79
- });
80
- }));
95
+ }
96
+ });
97
+
98
+ return he;
99
+
100
+ })));