momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -7,84 +7,84 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
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()) {
34
- case 0:
35
- case 3:
36
- case 6:
37
- return '[Изминатата] dddd [во] LT';
38
- case 1:
39
- case 2:
40
- case 4:
41
- case 5:
42
- return '[Изминатиот] dddd [во] LT';
43
- }
44
- },
45
- sameElse : 'L'
46
- },
47
- relativeTime : {
48
- future : 'после %s',
49
- past : 'пред %s',
50
- s : 'неколку секунди',
51
- m : 'минута',
52
- mm : '%d минути',
53
- h : 'час',
54
- hh : '%d часа',
55
- d : 'ден',
56
- dd : '%d дена',
57
- M : 'месец',
58
- MM : '%d месеци',
59
- y : 'година',
60
- yy : '%d години'
61
- },
62
- ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
63
- ordinal : function (number) {
64
- var lastDigit = number % 10,
65
- last2Digits = number % 100;
66
- if (number === 0) {
67
- return number + '-ев';
68
- } else if (last2Digits === 0) {
69
- return number + '-ен';
70
- } else if (last2Digits > 10 && last2Digits < 20) {
71
- return number + '-ти';
72
- } else if (lastDigit === 1) {
73
- return number + '-ви';
74
- } else if (lastDigit === 2) {
75
- return number + '-ри';
76
- } else if (lastDigit === 7 || lastDigit === 8) {
77
- return number + '-ми';
78
- } else {
79
- return number + '-ти';
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()) {
34
+ case 0:
35
+ case 3:
36
+ case 6:
37
+ return '[Изминатата] dddd [во] LT';
38
+ case 1:
39
+ case 2:
40
+ case 4:
41
+ case 5:
42
+ return '[Изминатиот] dddd [во] LT';
80
43
  }
81
44
  },
82
- week : {
83
- dow : 1, // Monday is the first day of the week.
84
- 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
+ m : 'минута',
52
+ mm : '%d минути',
53
+ h : 'час',
54
+ hh : '%d часа',
55
+ d : 'ден',
56
+ dd : '%d дена',
57
+ M : 'месец',
58
+ MM : '%d месеци',
59
+ y : 'година',
60
+ yy : '%d години'
61
+ },
62
+ ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
63
+ ordinal : function (number) {
64
+ var lastDigit = number % 10,
65
+ last2Digits = number % 100;
66
+ if (number === 0) {
67
+ return number + '-ев';
68
+ } else if (last2Digits === 0) {
69
+ return number + '-ен';
70
+ } else if (last2Digits > 10 && last2Digits < 20) {
71
+ return number + '-ти';
72
+ } else if (lastDigit === 1) {
73
+ return number + '-ви';
74
+ } else if (lastDigit === 2) {
75
+ return number + '-ри';
76
+ } else if (lastDigit === 7 || lastDigit === 8) {
77
+ return number + '-ми';
78
+ } else {
79
+ return number + '-ти';
85
80
  }
86
- });
81
+ },
82
+ week : {
83
+ dow : 1, // Monday is the first day of the week.
84
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
85
+ }
86
+ });
87
87
 
88
- return mk;
88
+ return mk;
89
89
 
90
- }));
90
+ })));
@@ -7,75 +7,75 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
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
- 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
- meridiemHour : function (hour, meridiem) {
53
- if (hour === 12) {
54
- hour = 0;
55
- }
56
- if ((meridiem === 'രാത്രി' && hour >= 4) ||
57
- meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
58
- meridiem === 'വൈകുന്നേരം') {
59
- return hour + 12;
60
- } else {
61
- return hour;
62
- }
63
- },
64
- meridiem : function (hour, minute, isLower) {
65
- if (hour < 4) {
66
- return 'രാത്രി';
67
- } else if (hour < 12) {
68
- return 'രാവിലെ';
69
- } else if (hour < 17) {
70
- return 'ഉച്ച കഴിഞ്ഞ്';
71
- } else if (hour < 20) {
72
- return 'വൈകുന്നേരം';
73
- } else {
74
- return 'രാത്രി';
75
- }
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
+ 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
+ meridiemHour : function (hour, meridiem) {
53
+ if (hour === 12) {
54
+ hour = 0;
76
55
  }
77
- });
56
+ if ((meridiem === 'രാത്രി' && hour >= 4) ||
57
+ meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
58
+ meridiem === 'വൈകുന്നേരം') {
59
+ return hour + 12;
60
+ } else {
61
+ return hour;
62
+ }
63
+ },
64
+ meridiem : function (hour, minute, isLower) {
65
+ if (hour < 4) {
66
+ return 'രാത്രി';
67
+ } else if (hour < 12) {
68
+ return 'രാവിലെ';
69
+ } else if (hour < 17) {
70
+ return 'ഉച്ച കഴിഞ്ഞ്';
71
+ } else if (hour < 20) {
72
+ return 'വൈകുന്നേരം';
73
+ } else {
74
+ return 'രാത്രി';
75
+ }
76
+ }
77
+ });
78
78
 
79
- return ml;
79
+ return ml;
80
80
 
81
- }));
81
+ })));
@@ -8,152 +8,152 @@
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
9
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
- }(this, function (moment) { 'use strict';
11
+ }(this, (function (moment) { 'use strict';
12
12
 
13
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
- numberMap = {
27
- '१': '1',
28
- '२': '2',
29
- '३': '3',
30
- '४': '4',
31
- '५': '5',
32
- '६': '6',
33
- '७': '7',
34
- '८': '8',
35
- '९': '9',
36
- '०': '0'
37
- };
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
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 'm': output = 'एक मिनिट'; break;
46
- case 'mm': output = '%d मिनिटे'; break;
47
- case 'h': output = 'एक तास'; break;
48
- case 'hh': output = '%d तास'; break;
49
- case 'd': output = 'एक दिवस'; break;
50
- case 'dd': output = '%d दिवस'; break;
51
- case 'M': output = 'एक महिना'; break;
52
- case 'MM': output = '%d महिने'; break;
53
- case 'y': output = 'एक वर्ष'; break;
54
- case 'yy': output = '%d वर्षे'; break;
55
- }
39
+ function relativeTimeMr(number, withoutSuffix, string, isFuture)
40
+ {
41
+ var output = '';
42
+ if (withoutSuffix) {
43
+ switch (string) {
44
+ case 's': output = 'काही सेकंद'; break;
45
+ case 'm': output = 'एक मिनिट'; break;
46
+ case 'mm': output = '%d मिनिटे'; break;
47
+ case 'h': output = 'एक तास'; break;
48
+ case 'hh': output = '%d तास'; break;
49
+ case 'd': output = 'एक दिवस'; break;
50
+ case 'dd': output = '%d दिवस'; break;
51
+ case 'M': output = 'एक महिना'; break;
52
+ case 'MM': output = '%d महिने'; break;
53
+ case 'y': output = 'एक वर्ष'; break;
54
+ case 'yy': output = '%d वर्षे'; break;
56
55
  }
57
- else {
58
- switch (string) {
59
- case 's': output = 'काही सेकंदां'; break;
60
- case 'm': output = 'एका मिनिटा'; break;
61
- case 'mm': output = '%d मिनिटां'; break;
62
- case 'h': output = 'एका तासा'; break;
63
- case 'hh': output = '%d तासां'; break;
64
- case 'd': output = 'एका दिवसा'; break;
65
- case 'dd': output = '%d दिवसां'; break;
66
- case 'M': output = 'एका महिन्या'; break;
67
- case 'MM': output = '%d महिन्यां'; break;
68
- case 'y': output = 'एका वर्षा'; break;
69
- case 'yy': output = '%d वर्षां'; break;
70
- }
56
+ }
57
+ else {
58
+ switch (string) {
59
+ case 's': output = 'काही सेकंदां'; break;
60
+ case 'm': output = 'एका मिनिटा'; break;
61
+ case 'mm': output = '%d मिनिटां'; break;
62
+ case 'h': output = 'एका तासा'; break;
63
+ case 'hh': output = '%d तासां'; break;
64
+ case 'd': output = 'एका दिवसा'; break;
65
+ case 'dd': output = '%d दिवसां'; break;
66
+ case 'M': output = 'एका महिन्या'; break;
67
+ case 'MM': output = '%d महिन्यां'; break;
68
+ case 'y': output = 'एका वर्षा'; break;
69
+ case 'yy': output = '%d वर्षां'; break;
71
70
  }
72
- return output.replace(/%d/i, number);
73
71
  }
72
+ return output.replace(/%d/i, number);
73
+ }
74
74
 
75
- var mr = moment.defineLocale('mr', {
76
- months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
77
- monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
78
- monthsParseExact : true,
79
- weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
80
- weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
81
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
82
- longDateFormat : {
83
- LT : 'A h:mm वाजता',
84
- LTS : 'A h:mm:ss वाजता',
85
- L : 'DD/MM/YYYY',
86
- LL : 'D MMMM YYYY',
87
- LLL : 'D MMMM YYYY, A h:mm वाजता',
88
- LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
89
- },
90
- calendar : {
91
- sameDay : '[आज] LT',
92
- nextDay : '[उद्या] LT',
93
- nextWeek : 'dddd, LT',
94
- lastDay : '[काल] LT',
95
- lastWeek: '[मागील] dddd, LT',
96
- sameElse : 'L'
97
- },
98
- relativeTime : {
99
- future: '%sमध्ये',
100
- past: '%sपूर्वी',
101
- s: relativeTimeMr,
102
- m: relativeTimeMr,
103
- mm: relativeTimeMr,
104
- h: relativeTimeMr,
105
- hh: relativeTimeMr,
106
- d: relativeTimeMr,
107
- dd: relativeTimeMr,
108
- M: relativeTimeMr,
109
- MM: relativeTimeMr,
110
- y: relativeTimeMr,
111
- yy: relativeTimeMr
112
- },
113
- preparse: function (string) {
114
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
115
- return numberMap[match];
116
- });
117
- },
118
- postformat: function (string) {
119
- return string.replace(/\d/g, function (match) {
120
- return symbolMap[match];
121
- });
122
- },
123
- meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
124
- meridiemHour : function (hour, meridiem) {
125
- if (hour === 12) {
126
- hour = 0;
127
- }
128
- if (meridiem === 'रात्री') {
129
- return hour < 4 ? hour : hour + 12;
130
- } else if (meridiem === 'सकाळी') {
131
- return hour;
132
- } else if (meridiem === 'दुपारी') {
133
- return hour >= 10 ? hour : hour + 12;
134
- } else if (meridiem === 'सायंकाळी') {
135
- return hour + 12;
136
- }
137
- },
138
- meridiem: function (hour, minute, isLower) {
139
- if (hour < 4) {
140
- return 'रात्री';
141
- } else if (hour < 10) {
142
- return 'सकाळी';
143
- } else if (hour < 17) {
144
- return 'दुपारी';
145
- } else if (hour < 20) {
146
- return 'सायंकाळी';
147
- } else {
148
- return 'रात्री';
149
- }
150
- },
151
- week : {
152
- dow : 0, // Sunday is the first day of the week.
153
- doy : 6 // The week that contains Jan 1st is the first week of the year.
75
+ var mr = moment.defineLocale('mr', {
76
+ months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
77
+ monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
78
+ monthsParseExact : true,
79
+ weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
80
+ weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
81
+ weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
82
+ longDateFormat : {
83
+ LT : 'A h:mm वाजता',
84
+ LTS : 'A h:mm:ss वाजता',
85
+ L : 'DD/MM/YYYY',
86
+ LL : 'D MMMM YYYY',
87
+ LLL : 'D MMMM YYYY, A h:mm वाजता',
88
+ LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
89
+ },
90
+ calendar : {
91
+ sameDay : '[आज] LT',
92
+ nextDay : '[उद्या] LT',
93
+ nextWeek : 'dddd, LT',
94
+ lastDay : '[काल] LT',
95
+ lastWeek: '[मागील] dddd, LT',
96
+ sameElse : 'L'
97
+ },
98
+ relativeTime : {
99
+ future: '%sमध्ये',
100
+ past: '%sपूर्वी',
101
+ s: relativeTimeMr,
102
+ m: relativeTimeMr,
103
+ mm: relativeTimeMr,
104
+ h: relativeTimeMr,
105
+ hh: relativeTimeMr,
106
+ d: relativeTimeMr,
107
+ dd: relativeTimeMr,
108
+ M: relativeTimeMr,
109
+ MM: relativeTimeMr,
110
+ y: relativeTimeMr,
111
+ yy: relativeTimeMr
112
+ },
113
+ preparse: function (string) {
114
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
115
+ return numberMap[match];
116
+ });
117
+ },
118
+ postformat: function (string) {
119
+ return string.replace(/\d/g, function (match) {
120
+ return symbolMap[match];
121
+ });
122
+ },
123
+ meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
124
+ meridiemHour : function (hour, meridiem) {
125
+ if (hour === 12) {
126
+ hour = 0;
127
+ }
128
+ if (meridiem === 'रात्री') {
129
+ return hour < 4 ? hour : hour + 12;
130
+ } else if (meridiem === 'सकाळी') {
131
+ return hour;
132
+ } else if (meridiem === 'दुपारी') {
133
+ return hour >= 10 ? hour : hour + 12;
134
+ } else if (meridiem === 'सायंकाळी') {
135
+ return hour + 12;
136
+ }
137
+ },
138
+ meridiem: function (hour, minute, isLower) {
139
+ if (hour < 4) {
140
+ return 'रात्री';
141
+ } else if (hour < 10) {
142
+ return 'सकाळी';
143
+ } else if (hour < 17) {
144
+ return 'दुपारी';
145
+ } else if (hour < 20) {
146
+ return 'सायंकाळी';
147
+ } else {
148
+ return 'रात्री';
154
149
  }
155
- });
150
+ },
151
+ week : {
152
+ dow : 0, // Sunday is the first day of the week.
153
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
154
+ }
155
+ });
156
156
 
157
- return mr;
157
+ return mr;
158
158
 
159
- }));
159
+ })));