Merge "Drop not needed @dataProvider doc tags from MediaWikiTitleCodecTest"
[lhc/web/wiklou.git] / resources / lib / moment / locale / mr.js
1 // moment.js locale configuration
2 // locale : Marathi (mr)
3 // author : Harshad Kale : https://github.com/kalehv
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 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 };
38
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 meridiem: function (hour, minute, isLower)
87 {
88 if (hour < 4) {
89 return 'रात्री';
90 } else if (hour < 10) {
91 return 'सकाळी';
92 } else if (hour < 17) {
93 return 'दुपारी';
94 } else if (hour < 20) {
95 return 'सायंकाळी';
96 } else {
97 return 'रात्री';
98 }
99 },
100 week : {
101 dow : 0, // Sunday is the first day of the week.
102 doy : 6 // The week that contains Jan 1st is the first week of the year.
103 }
104 });
105 }));