1 // moment.js locale configuration
3 // author : Mayank Singhal : https://github.com/mayanksinghal
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
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
41 return moment
.defineLocale('hi', {
42 months
: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
43 monthsShort
: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
44 weekdays
: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
45 weekdaysShort
: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
46 weekdaysMin
: 'र_सो_मं_बु_गु_शु_श'.split('_'),
49 LTS
: 'A h:mm:ss बजे',
52 LLL
: 'D MMMM YYYY, LT',
53 LLLL
: 'dddd, D MMMM YYYY, LT'
58 nextWeek
: 'dddd, LT',
60 lastWeek
: '[पिछले] dddd, LT',
78 preparse: function (string
) {
79 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
80 return numberMap
[match
];
83 postformat: function (string
) {
84 return string
.replace(/\d/g, function (match
) {
85 return symbolMap
[match
];
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
) {
93 } else if (hour
< 10) {
95 } else if (hour
< 17) {
97 } else if (hour
< 20) {
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.