Merge "Show the revision list immediately on "umerge" log action links"
[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(window.moment); // Browser 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 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY, LT',
50 LLLL : 'dddd, D MMMM YYYY, LT'
51 },
52 calendar : {
53 sameDay : '[आज] LT',
54 nextDay : '[उद्या] LT',
55 nextWeek : 'dddd, LT',
56 lastDay : '[काल] LT',
57 lastWeek: '[मागील] dddd, LT',
58 sameElse : 'L'
59 },
60 relativeTime : {
61 future : '%s नंतर',
62 past : '%s पूर्वी',
63 s : 'सेकंद',
64 m: 'एक मिनिट',
65 mm: '%d मिनिटे',
66 h : 'एक तास',
67 hh : '%d तास',
68 d : 'एक दिवस',
69 dd : '%d दिवस',
70 M : 'एक महिना',
71 MM : '%d महिने',
72 y : 'एक वर्ष',
73 yy : '%d वर्षे'
74 },
75 preparse: function (string) {
76 return string.replace(/[१२३४५६७८९०]/g, function (match) {
77 return numberMap[match];
78 });
79 },
80 postformat: function (string) {
81 return string.replace(/\d/g, function (match) {
82 return symbolMap[match];
83 });
84 },
85 meridiem: function (hour, minute, isLower)
86 {
87 if (hour < 4) {
88 return 'रात्री';
89 } else if (hour < 10) {
90 return 'सकाळी';
91 } else if (hour < 17) {
92 return 'दुपारी';
93 } else if (hour < 20) {
94 return 'सायंकाळी';
95 } else {
96 return 'रात्री';
97 }
98 },
99 week : {
100 dow : 0, // Sunday is the first day of the week.
101 doy : 6 // The week that contains Jan 1st is the first week of the year.
102 }
103 });
104 }));