GPQAPP
1//! moment.js locale configuration
2//! locale : Marathi [mr]
3//! author : Harshad Kale : https://github.com/kalehv
4//! author : Vivek Athalye : https://github.com/vnathalye
5
6;(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15var symbolMap = {161: '१',172: '२',183: '३',194: '४',205: '५',216: '६',227: '७',238: '८',249: '९',250: '०',26},27numberMap = {28'१': '1',29'२': '2',30'३': '3',31'४': '4',32'५': '5',33'६': '6',34'७': '7',35'८': '8',36'९': '9',37'०': '0',38};39
40function relativeTimeMr(number, withoutSuffix, string, isFuture) {41var output = '';42if (withoutSuffix) {43switch (string) {44case 's':45output = 'काही सेकंद';46break;47case 'ss':48output = '%d सेकंद';49break;50case 'm':51output = 'एक मिनिट';52break;53case 'mm':54output = '%d मिनिटे';55break;56case 'h':57output = 'एक तास';58break;59case 'hh':60output = '%d तास';61break;62case 'd':63output = 'एक दिवस';64break;65case 'dd':66output = '%d दिवस';67break;68case 'M':69output = 'एक महिना';70break;71case 'MM':72output = '%d महिने';73break;74case 'y':75output = 'एक वर्ष';76break;77case 'yy':78output = '%d वर्षे';79break;80}81} else {82switch (string) {83case 's':84output = 'काही सेकंदां';85break;86case 'ss':87output = '%d सेकंदां';88break;89case 'm':90output = 'एका मिनिटा';91break;92case 'mm':93output = '%d मिनिटां';94break;95case 'h':96output = 'एका तासा';97break;98case 'hh':99output = '%d तासां';100break;101case 'd':102output = 'एका दिवसा';103break;104case 'dd':105output = '%d दिवसां';106break;107case 'M':108output = 'एका महिन्या';109break;110case 'MM':111output = '%d महिन्यां';112break;113case 'y':114output = 'एका वर्षा';115break;116case 'yy':117output = '%d वर्षां';118break;119}120}121return output.replace(/%d/i, number);122}123
124var mr = moment.defineLocale('mr', {125months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(126'_'127),128monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(129'_'130),131monthsParseExact: true,132weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),133weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),134weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),135longDateFormat: {136LT: 'A h:mm वाजता',137LTS: 'A h:mm:ss वाजता',138L: 'DD/MM/YYYY',139LL: 'D MMMM YYYY',140LLL: 'D MMMM YYYY, A h:mm वाजता',141LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',142},143calendar: {144sameDay: '[आज] LT',145nextDay: '[उद्या] LT',146nextWeek: 'dddd, LT',147lastDay: '[काल] LT',148lastWeek: '[मागील] dddd, LT',149sameElse: 'L',150},151relativeTime: {152future: '%sमध्ये',153past: '%sपूर्वी',154s: relativeTimeMr,155ss: relativeTimeMr,156m: relativeTimeMr,157mm: relativeTimeMr,158h: relativeTimeMr,159hh: relativeTimeMr,160d: relativeTimeMr,161dd: relativeTimeMr,162M: relativeTimeMr,163MM: relativeTimeMr,164y: relativeTimeMr,165yy: relativeTimeMr,166},167preparse: function (string) {168return string.replace(/[१२३४५६७८९०]/g, function (match) {169return numberMap[match];170});171},172postformat: function (string) {173return string.replace(/\d/g, function (match) {174return symbolMap[match];175});176},177meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,178meridiemHour: function (hour, meridiem) {179if (hour === 12) {180hour = 0;181}182if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {183return hour;184} else if (185meridiem === 'दुपारी' ||186meridiem === 'सायंकाळी' ||187meridiem === 'रात्री'188) {189return hour >= 12 ? hour : hour + 12;190}191},192meridiem: function (hour, minute, isLower) {193if (hour >= 0 && hour < 6) {194return 'पहाटे';195} else if (hour < 12) {196return 'सकाळी';197} else if (hour < 17) {198return 'दुपारी';199} else if (hour < 20) {200return 'सायंकाळी';201} else {202return 'रात्री';203}204},205week: {206dow: 0, // Sunday is the first day of the week.207doy: 6, // The week that contains Jan 6th is the first week of the year.208},209});210
211return mr;212
213})));214