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,88 +1,91 @@
1
- // moment.js locale configuration
2
- // locale : macedonian (mk)
3
- // author : Borislav Mickov : https://github.com/B0k0
1
+ //! moment.js locale configuration
2
+ //! locale : Macedonian [mk]
3
+ //! author : Borislav Mickov : https://github.com/B0k0
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('mk', {
15
- months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
16
- monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
17
- weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
18
- weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
19
- weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
20
- longDateFormat : {
21
- LT : 'H:mm',
22
- LTS : 'LT:ss',
23
- L : 'D.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 : '[Денес во] LT',
30
- nextDay : '[Утре во] LT',
31
- nextWeek : 'dddd [во] LT',
32
- lastDay : '[Вчера во] LT',
33
- lastWeek : function () {
34
- switch (this.day()) {
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 mk = moment.defineLocale('mk', {
14
+ months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
15
+ monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
16
+ weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
17
+ weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
18
+ weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'H:mm',
21
+ LTS : 'H:mm:ss',
22
+ L : 'D.MM.YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY H:mm',
25
+ LLLL : 'dddd, D MMMM YYYY H:mm'
26
+ },
27
+ calendar : {
28
+ sameDay : '[Денес во] LT',
29
+ nextDay : '[Утре во] LT',
30
+ nextWeek : '[Во] dddd [во] LT',
31
+ lastDay : '[Вчера во] LT',
32
+ lastWeek : function () {
33
+ switch (this.day()) {
35
34
  case 0:
36
35
  case 3:
37
36
  case 6:
38
- return '[Во изминатата] dddd [во] LT';
37
+ return '[Изминатата] dddd [во] LT';
39
38
  case 1:
40
39
  case 2:
41
40
  case 4:
42
41
  case 5:
43
- return '[Во изминатиот] dddd [во] LT';
44
- }
45
- },
46
- sameElse : 'L'
47
- },
48
- relativeTime : {
49
- future : 'после %s',
50
- past : 'пред %s',
51
- s : 'неколку секунди',
52
- m : 'минута',
53
- mm : '%d минути',
54
- h : 'час',
55
- hh : '%d часа',
56
- d : 'ден',
57
- dd : '%d дена',
58
- M : 'месец',
59
- MM : '%d месеци',
60
- y : 'година',
61
- yy : '%d години'
62
- },
63
- ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
64
- ordinal : function (number) {
65
- var lastDigit = number % 10,
66
- last2Digits = number % 100;
67
- if (number === 0) {
68
- return number + '-ев';
69
- } else if (last2Digits === 0) {
70
- return number + '-ен';
71
- } else if (last2Digits > 10 && last2Digits < 20) {
72
- return number + '-ти';
73
- } else if (lastDigit === 1) {
74
- return number + '-ви';
75
- } else if (lastDigit === 2) {
76
- return number + '-ри';
77
- } else if (lastDigit === 7 || lastDigit === 8) {
78
- return number + '-ми';
79
- } else {
80
- return number + '-ти';
42
+ return '[Изминатиот] dddd [во] LT';
81
43
  }
82
44
  },
83
- week : {
84
- dow : 1, // Monday is the first day of the week.
85
- doy : 7 // The week that contains Jan 1st is the first week of the year.
45
+ sameElse : 'L'
46
+ },
47
+ relativeTime : {
48
+ future : 'после %s',
49
+ past : 'пред %s',
50
+ s : 'неколку секунди',
51
+ ss : '%d секунди',
52
+ m : 'минута',
53
+ mm : '%d минути',
54
+ h : 'час',
55
+ hh : '%d часа',
56
+ d : 'ден',
57
+ dd : '%d дена',
58
+ M : 'месец',
59
+ MM : '%d месеци',
60
+ y : 'година',
61
+ yy : '%d години'
62
+ },
63
+ dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
64
+ ordinal : function (number) {
65
+ var lastDigit = number % 10,
66
+ last2Digits = number % 100;
67
+ if (number === 0) {
68
+ return number + '-ев';
69
+ } else if (last2Digits === 0) {
70
+ return number + '-ен';
71
+ } else if (last2Digits > 10 && last2Digits < 20) {
72
+ return number + '-ти';
73
+ } else if (lastDigit === 1) {
74
+ return number + '-ви';
75
+ } else if (lastDigit === 2) {
76
+ return number + '-ри';
77
+ } else if (lastDigit === 7 || lastDigit === 8) {
78
+ return number + '-ми';
79
+ } else {
80
+ return number + '-ти';
86
81
  }
87
- });
88
- }));
82
+ },
83
+ week : {
84
+ dow : 1, // Monday is the first day of the week.
85
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
86
+ }
87
+ });
88
+
89
+ return mk;
90
+
91
+ })));
@@ -1,69 +1,82 @@
1
- // moment.js locale configuration
2
- // locale : malayalam (ml)
3
- // author : Floyd Pink : https://github.com/floydpink
1
+ //! moment.js locale configuration
2
+ //! locale : Malayalam [ml]
3
+ //! author : Floyd Pink : https://github.com/floydpink
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('ml', {
15
- months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
16
- monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
17
- weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
18
- weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
19
- weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
20
- longDateFormat : {
21
- LT : 'A h:mm -നു',
22
- LTS : 'A h:mm: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 : '[ഇന്ന്] LT',
30
- nextDay : '[നാളെ] LT',
31
- nextWeek : 'dddd, LT',
32
- lastDay : '[ഇന്നലെ] LT',
33
- lastWeek : '[കഴിഞ്ഞ] dddd, LT',
34
- sameElse : 'L'
35
- },
36
- relativeTime : {
37
- future : '%s കഴിഞ്ഞ്',
38
- past : '%s മുൻപ്',
39
- s : 'അൽപ നിമിഷങ്ങൾ',
40
- m : 'ഒരു മിനിറ്റ്',
41
- mm : '%d മിനിറ്റ്',
42
- h : 'ഒരു മണിക്കൂർ',
43
- hh : '%d മണിക്കൂർ',
44
- d : 'ഒരു ദിവസം',
45
- dd : '%d ദിവസം',
46
- M : 'ഒരു മാസം',
47
- MM : '%d മാസം',
48
- y : 'ഒരു വർഷം',
49
- yy : '%d വർഷം'
50
- },
51
- meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
52
- isPM : function (input) {
53
- return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input);
54
- },
55
- meridiem : function (hour, minute, isLower) {
56
- if (hour < 4) {
57
- return 'രാത്രി';
58
- } else if (hour < 12) {
59
- return 'രാവിലെ';
60
- } else if (hour < 17) {
61
- return 'ഉച്ച കഴിഞ്ഞ്';
62
- } else if (hour < 20) {
63
- return 'വൈകുന്നേരം';
64
- } else {
65
- return 'രാത്രി';
66
- }
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 ml = moment.defineLocale('ml', {
14
+ months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
15
+ monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
16
+ monthsParseExact : true,
17
+ weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
18
+ weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
19
+ weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'A h:mm -നു',
22
+ LTS : 'A h:mm:ss -നു',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY, A h:mm -നു',
26
+ LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
27
+ },
28
+ calendar : {
29
+ sameDay : '[ഇന്ന്] LT',
30
+ nextDay : '[നാളെ] LT',
31
+ nextWeek : 'dddd, LT',
32
+ lastDay : '[ഇന്നലെ] LT',
33
+ lastWeek : '[കഴിഞ്ഞ] dddd, LT',
34
+ sameElse : 'L'
35
+ },
36
+ relativeTime : {
37
+ future : '%s കഴിഞ്ഞ്',
38
+ past : '%s മുൻപ്',
39
+ s : 'അൽപ നിമിഷങ്ങൾ',
40
+ ss : '%d സെക്കൻഡ്',
41
+ m : 'ഒരു മിനിറ്റ്',
42
+ mm : '%d മിനിറ്റ്',
43
+ h : 'ഒരു മണിക്കൂർ',
44
+ hh : '%d മണിക്കൂർ',
45
+ d : 'ഒരു ദിവസം',
46
+ dd : '%d ദിവസം',
47
+ M : 'ഒരു മാസം',
48
+ MM : '%d മാസം',
49
+ y : 'ഒരു വർഷം',
50
+ yy : '%d വർഷം'
51
+ },
52
+ meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
53
+ meridiemHour : function (hour, meridiem) {
54
+ if (hour === 12) {
55
+ hour = 0;
56
+ }
57
+ if ((meridiem === 'രാത്രി' && hour >= 4) ||
58
+ meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
59
+ meridiem === 'വൈകുന്നേരം') {
60
+ return hour + 12;
61
+ } else {
62
+ return hour;
67
63
  }
68
- });
69
- }));
64
+ },
65
+ meridiem : function (hour, minute, isLower) {
66
+ if (hour < 4) {
67
+ return 'രാത്രി';
68
+ } else if (hour < 12) {
69
+ return 'രാവിലെ';
70
+ } else if (hour < 17) {
71
+ return 'ഉച്ച കഴിഞ്ഞ്';
72
+ } else if (hour < 20) {
73
+ return 'വൈകുന്നേരം';
74
+ } else {
75
+ return 'രാത്രി';
76
+ }
77
+ }
78
+ });
79
+
80
+ return ml;
81
+
82
+ })));
@@ -1,120 +1,162 @@
1
- // moment.js locale configuration
2
- // locale : Marathi (mr)
3
- // author : Harshad Kale : https://github.com/kalehv
1
+ //! moment.js locale configuration
2
+ //! locale : Marathi [mr]
3
+ //! author : Harshad Kale : https://github.com/kalehv
4
+ //! author : Vivek Athalye : https://github.com/vnathalye
4
5
 
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
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ var symbolMap = {
15
+ '1': '१',
16
+ '2': '२',
17
+ '3': '३',
18
+ '4': '४',
19
+ '5': '५',
20
+ '6': '६',
21
+ '7': '७',
22
+ '8': '८',
23
+ '9': '९',
24
+ '0': '०'
25
+ };
26
+ var numberMap = {
27
+ '१': '1',
28
+ '२': '2',
29
+ '३': '3',
30
+ '४': '4',
31
+ '५': '5',
32
+ '६': '6',
33
+ '७': '7',
34
+ '८': '8',
35
+ '९': '9',
36
+ '०': '0'
37
+ };
38
+
39
+ function relativeTimeMr(number, withoutSuffix, string, isFuture)
40
+ {
41
+ var output = '';
42
+ if (withoutSuffix) {
43
+ switch (string) {
44
+ case 's': output = 'काही सेकंद'; break;
45
+ case 'ss': output = '%d सेकंद'; break;
46
+ case 'm': output = 'एक मिनिट'; break;
47
+ case 'mm': output = '%d मिनिटे'; break;
48
+ case 'h': output = 'एक तास'; break;
49
+ case 'hh': output = '%d तास'; break;
50
+ case 'd': output = 'एक दिवस'; break;
51
+ case 'dd': output = '%d दिवस'; break;
52
+ case 'M': output = 'एक महिना'; break;
53
+ case 'MM': output = '%d महिने'; break;
54
+ case 'y': output = 'एक वर्ष'; break;
55
+ case 'yy': output = '%d वर्षे'; break;
56
+ }
12
57
  }
13
- }(function (moment) {
14
- var symbolMap = {
15
- '1': '',
16
- '2': '',
17
- '3': '',
18
- '4': '',
19
- '5': '',
20
- '6': '',
21
- '7': '',
22
- '8': '',
23
- '9': '',
24
- '0': ''
25
- },
26
- numberMap = {
27
- '१': '1',
28
- '२': '2',
29
- '३': '3',
30
- '४': '4',
31
- '५': '5',
32
- '६': '6',
33
- '७': '7',
34
- '८': '8',
35
- '९': '9',
36
- '०': '0'
37
- };
58
+ else {
59
+ switch (string) {
60
+ case 's': output = 'काही सेकंदां'; break;
61
+ case 'ss': output = '%d सेकंदां'; break;
62
+ case 'm': output = 'एका मिनिटा'; break;
63
+ case 'mm': output = '%d मिनिटां'; break;
64
+ case 'h': output = 'एका तासा'; break;
65
+ case 'hh': output = '%d तासां'; break;
66
+ case 'd': output = 'एका दिवसा'; break;
67
+ case 'dd': output = '%d दिवसां'; break;
68
+ case 'M': output = 'एका महिन्या'; break;
69
+ case 'MM': output = '%d महिन्यां'; break;
70
+ case 'y': output = 'एका वर्षा'; break;
71
+ case 'yy': output = '%d वर्षां'; break;
72
+ }
73
+ }
74
+ return output.replace(/%d/i, number);
75
+ }
38
76
 
39
- return moment.defineLocale('mr', {
40
- months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
41
- monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
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, LT',
51
- LLLL : 'dddd, D MMMM YYYY, LT'
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
- m: 'एक मिनिट',
66
- mm: '%d मिनिटे',
67
- h : 'एक तास',
68
- hh : '%d तास',
69
- d : 'एक दिवस',
70
- dd : '%d दिवस',
71
- M : 'एक महिना',
72
- MM : '%d महिने',
73
- y : 'एक वर्ष',
74
- yy : '%d वर्षे'
75
- },
76
- preparse: function (string) {
77
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
78
- return numberMap[match];
79
- });
80
- },
81
- postformat: function (string) {
82
- return string.replace(/\d/g, function (match) {
83
- return symbolMap[match];
84
- });
85
- },
86
- meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
87
- meridiemHour : function (hour, meridiem) {
88
- if (hour === 12) {
89
- hour = 0;
90
- }
91
- if (meridiem === 'रात्री') {
92
- return hour < 4 ? hour : hour + 12;
93
- } else if (meridiem === 'सकाळी') {
94
- return hour;
95
- } else if (meridiem === 'दुपारी') {
96
- return hour >= 10 ? hour : hour + 12;
97
- } else if (meridiem === 'सायंकाळी') {
98
- return hour + 12;
99
- }
100
- },
101
- meridiem: function (hour, minute, isLower)
102
- {
103
- if (hour < 4) {
104
- return 'रात्री';
105
- } else if (hour < 10) {
106
- return 'सकाळी';
107
- } else if (hour < 17) {
108
- return 'दुपारी';
109
- } else if (hour < 20) {
110
- return 'सायंकाळी';
111
- } else {
112
- return 'रात्री';
113
- }
114
- },
115
- week : {
116
- dow : 0, // Sunday is the first day of the week.
117
- doy : 6 // The week that contains Jan 1st is the first week of the year.
77
+ var mr = moment.defineLocale('mr', {
78
+ months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
79
+ monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
80
+ monthsParseExact : true,
81
+ weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
82
+ weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
83
+ weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
84
+ longDateFormat : {
85
+ LT : 'A h:mm वाजता',
86
+ LTS : 'A h:mm:ss वाजता',
87
+ L : 'DD/MM/YYYY',
88
+ LL : 'D MMMM YYYY',
89
+ LLL : 'D MMMM YYYY, A h:mm वाजता',
90
+ LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
91
+ },
92
+ calendar : {
93
+ sameDay : '[आज] LT',
94
+ nextDay : '[उद्या] LT',
95
+ nextWeek : 'dddd, LT',
96
+ lastDay : '[काल] LT',
97
+ lastWeek: '[मागील] dddd, LT',
98
+ sameElse : 'L'
99
+ },
100
+ relativeTime : {
101
+ future: '%sमध्ये',
102
+ past: '%sपूर्वी',
103
+ s: relativeTimeMr,
104
+ ss: relativeTimeMr,
105
+ m: relativeTimeMr,
106
+ mm: relativeTimeMr,
107
+ h: relativeTimeMr,
108
+ hh: relativeTimeMr,
109
+ d: relativeTimeMr,
110
+ dd: relativeTimeMr,
111
+ M: relativeTimeMr,
112
+ MM: relativeTimeMr,
113
+ y: relativeTimeMr,
114
+ yy: relativeTimeMr
115
+ },
116
+ preparse: function (string) {
117
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
118
+ return numberMap[match];
119
+ });
120
+ },
121
+ postformat: function (string) {
122
+ return string.replace(/\d/g, function (match) {
123
+ return symbolMap[match];
124
+ });
125
+ },
126
+ meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
127
+ meridiemHour : function (hour, meridiem) {
128
+ if (hour === 12) {
129
+ hour = 0;
130
+ }
131
+ if (meridiem === 'रात्री') {
132
+ return hour < 4 ? hour : hour + 12;
133
+ } else if (meridiem === 'सकाळी') {
134
+ return hour;
135
+ } else if (meridiem === 'दुपारी') {
136
+ return hour >= 10 ? hour : hour + 12;
137
+ } else if (meridiem === 'सायंकाळी') {
138
+ return hour + 12;
139
+ }
140
+ },
141
+ meridiem: function (hour, minute, isLower) {
142
+ if (hour < 4) {
143
+ return 'रात्री';
144
+ } else if (hour < 10) {
145
+ return 'सकाळी';
146
+ } else if (hour < 17) {
147
+ return 'दुपारी';
148
+ } else if (hour < 20) {
149
+ return 'सायंकाळी';
150
+ } else {
151
+ return 'रात्री';
118
152
  }
119
- });
120
- }));
153
+ },
154
+ week : {
155
+ dow : 0, // Sunday is the first day of the week.
156
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
157
+ }
158
+ });
159
+
160
+ return mr;
161
+
162
+ })));