1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
36 var hi
= moment
.defineLocale('hi', {
37 months
: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
38 monthsShort
: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
39 monthsParseExact
: true,
40 weekdays
: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
41 weekdaysShort
: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
42 weekdaysMin
: 'र_सो_मं_बु_गु_शु_श'.split('_'),
45 LTS
: 'A h:mm:ss बजे',
48 LLL
: 'D MMMM YYYY, A h:mm बजे',
49 LLLL
: 'dddd, D MMMM YYYY, A h:mm बजे'
54 nextWeek
: 'dddd, LT',
56 lastWeek
: '[पिछले] dddd, LT',
75 preparse: function (string
) {
76 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
77 return numberMap
[match
];
80 postformat: function (string
) {
81 return string
.replace(/\d/g, function (match
) {
82 return symbolMap
[match
];
85 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
86 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
87 meridiemParse
: /रात|सुबह|दोपहर|शाम/,
88 meridiemHour : function (hour
, meridiem
) {
92 if (meridiem
=== 'रात') {
93 return hour
< 4 ? hour
: hour
+ 12;
94 } else if (meridiem
=== 'सुबह') {
96 } else if (meridiem
=== 'दोपहर') {
97 return hour
>= 10 ? hour
: hour
+ 12;
98 } else if (meridiem
=== 'शाम') {
102 meridiem : function (hour
, minute
, isLower
) {
105 } else if (hour
< 10) {
107 } else if (hour
< 17) {
109 } else if (hour
< 20) {
116 dow
: 0, // Sunday is the first day of the week.
117 doy
: 6 // The week that contains Jan 6th is the first week of the year.