1 //! moment.js locale configuration
2 //! locale : Hindi [hi]
3 //! author : Mayank Singhal : https://github.com/mayanksinghal
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 }(this, (function (moment) { 'use strict';
12 //! moment.js locale configuration
39 var hi = moment.defineLocale('hi', {
40 months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
43 monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
46 monthsParseExact: true,
47 weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
48 weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
49 weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
55 LLL: 'D MMMM YYYY, A h:mm बजे',
56 LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
63 lastWeek: '[पिछले] dddd, LT',
82 preparse: function (string) {
83 return string.replace(/[१२३४५६७८९०]/g, function (match) {
84 return numberMap[match];
87 postformat: function (string) {
88 return string.replace(/\d/g, function (match) {
89 return symbolMap[match];
92 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
93 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
94 meridiemParse: /रात|सुबह|दोपहर|शाम/,
95 meridiemHour: function (hour, meridiem) {
99 if (meridiem === 'रात') {
100 return hour < 4 ? hour : hour + 12;
101 } else if (meridiem === 'सुबह') {
103 } else if (meridiem === 'दोपहर') {
104 return hour >= 10 ? hour : hour + 12;
105 } else if (meridiem === 'शाम') {
109 meridiem: function (hour, minute, isLower) {
112 } else if (hour < 10) {
114 } else if (hour < 17) {
116 } else if (hour < 20) {
123 dow: 0, // Sunday is the first day of the week.
124 doy: 6, // The week that contains Jan 6th is the first week of the year.