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';
38 var hi = moment.defineLocale('hi', {
39 months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
40 monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
41 monthsParseExact: true,
42 weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
43 weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
44 weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
47 LTS : 'A h:mm:ss बजे',
50 LLL : 'D MMMM YYYY, A h:mm बजे',
51 LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
56 nextWeek : 'dddd, LT',
58 lastWeek : '[पिछले] dddd, LT',
76 preparse: function (string) {
77 return string.replace(/[१२३४५६७८९०]/g, function (match) {
78 return numberMap[match];
81 postformat: function (string) {
82 return string.replace(/\d/g, function (match) {
83 return symbolMap[match];
86 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
87 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
88 meridiemParse: /रात|सुबह|दोपहर|शाम/,
89 meridiemHour : function (hour, meridiem) {
93 if (meridiem === 'रात') {
94 return hour < 4 ? hour : hour + 12;
95 } else if (meridiem === 'सुबह') {
97 } else if (meridiem === 'दोपहर') {
98 return hour >= 10 ? hour : hour + 12;
99 } else if (meridiem === 'शाम') {
103 meridiem : function (hour, minute, isLower) {
106 } else if (hour < 10) {
108 } else if (hour < 17) {
110 } else if (hour < 20) {
117 dow : 0, // Sunday is the first day of the week.
118 doy : 6 // The week that contains Jan 1st is the first week of the year.