Merge "Revert "Use display name in category page subheadings if provided""
[lhc/web/wiklou.git] / resources / lib / moment / locale / hi.js
1 // moment.js locale configuration
2 // locale : hindi (hi)
3 // author : Mayank Singhal : https://github.com/mayanksinghal
4
5 (function (factory) {
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
11 } else {
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13 }*/
14 factory(this.moment);
15 }(function (moment) {
16 var symbolMap = {
17 '1': '१',
18 '2': '२',
19 '3': '३',
20 '4': '४',
21 '5': '५',
22 '6': '६',
23 '7': '७',
24 '8': '८',
25 '9': '९',
26 '0': '०'
27 },
28 numberMap = {
29 '१': '1',
30 '२': '2',
31 '३': '3',
32 '४': '4',
33 '५': '5',
34 '६': '6',
35 '७': '7',
36 '८': '8',
37 '९': '9',
38 '०': '0'
39 };
40
41 return moment.defineLocale('hi', {
42 months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
43 monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
44 weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
45 weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
46 weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
47 longDateFormat : {
48 LT : 'A h:mm बजे',
49 LTS : 'A h:mm:ss बजे',
50 L : 'DD/MM/YYYY',
51 LL : 'D MMMM YYYY',
52 LLL : 'D MMMM YYYY, LT',
53 LLLL : 'dddd, D MMMM YYYY, LT'
54 },
55 calendar : {
56 sameDay : '[आज] LT',
57 nextDay : '[कल] LT',
58 nextWeek : 'dddd, LT',
59 lastDay : '[कल] LT',
60 lastWeek : '[पिछले] dddd, LT',
61 sameElse : 'L'
62 },
63 relativeTime : {
64 future : '%s में',
65 past : '%s पहले',
66 s : 'कुछ ही क्षण',
67 m : 'एक मिनट',
68 mm : '%d मिनट',
69 h : 'एक घंटा',
70 hh : '%d घंटे',
71 d : 'एक दिन',
72 dd : '%d दिन',
73 M : 'एक महीने',
74 MM : '%d महीने',
75 y : 'एक वर्ष',
76 yy : '%d वर्ष'
77 },
78 preparse: function (string) {
79 return string.replace(/[१२३४५६७८९०]/g, function (match) {
80 return numberMap[match];
81 });
82 },
83 postformat: function (string) {
84 return string.replace(/\d/g, function (match) {
85 return symbolMap[match];
86 });
87 },
88 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
89 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
90 meridiem : function (hour, minute, isLower) {
91 if (hour < 4) {
92 return 'रात';
93 } else if (hour < 10) {
94 return 'सुबह';
95 } else if (hour < 17) {
96 return 'दोपहर';
97 } else if (hour < 20) {
98 return 'शाम';
99 } else {
100 return 'रात';
101 }
102 },
103 week : {
104 dow : 0, // Sunday is the first day of the week.
105 doy : 6 // The week that contains Jan 1st is the first week of the year.
106 }
107 });
108 }));