arcadiasuite/plus/public/assets/vendor/moment/locale/mr.js

160 lines
6.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
var symbolMap = {
'1': '१',
'2': '२',
'3': '३',
'4': '४',
'5': '५',
'6': '६',
'7': '७',
'8': '८',
'9': '९',
'0': ''
},
numberMap = {
'१': '1',
'२': '2',
'३': '3',
'४': '4',
'५': '5',
'६': '6',
'': '7',
'': '8',
'': '9',
'': '0'
};
function relativeTimeMr(number, withoutSuffix, string, isFuture)
{
var output = '';
if (withoutSuffix) {
switch (string) {
case 's': output = ' '; break;
case 'ss': output = '%d '; break;
case 'm': output = 'एक िि'; break;
case 'mm': output = '%d िि'; break;
case 'h': output = 'एक '; break;
case 'hh': output = '%d '; break;
case 'd': output = 'एक िवस'; break;
case 'dd': output = '%d िवस'; break;
case 'M': output = 'एक महि'; break;
case 'MM': output = '%d महि'; break;
case 'y': output = 'एक वर'; break;
case 'yy': output = '%d वर'; break;
}
}
else {
switch (string) {
case 's': output = ' '; break;
case 'ss': output = '%d '; break;
case 'm': output = 'एक िि'; break;
case 'mm': output = '%d िि'; break;
case 'h': output = 'एक '; break;
case 'hh': output = '%d '; break;
case 'd': output = 'एक िवस'; break;
case 'dd': output = '%d िवस'; break;
case 'M': output = 'एक महि'; break;
case 'MM': output = '%d महि'; break;
case 'y': output = 'एक वर'; break;
case 'yy': output = '%d वर'; break;
}
}
return output.replace(/%d/i, number);
}
var mr = moment.defineLocale('mr', {
months : '_फ_म_एपि_म_ज_ज_ऑगस_सपबर_ऑकबर_नबर_डिबर'.split('_'),
monthsShort: '._फ._म._एपि._म._ज._ज._ऑग._सप._ऑक._न._डि.'.split('_'),
monthsParseExact : true,
weekdays : 'रवि_समव_मगळव_बधव_ग_शरव_शनि'.split('_'),
weekdaysShort : 'रवि_स_मगळ_ब_ग_श_शनि'.split('_'),
weekdaysMin : '_स_म_ब_ग_श_श'.split('_'),
longDateFormat : {
LT : 'A h:mm जत',
LTS : 'A h:mm:ss जत',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY, A h:mm जत',
LLLL : 'dddd, D MMMM YYYY, A h:mm जत'
},
calendar : {
sameDay : '[आज] LT',
nextDay : '[उद] LT',
nextWeek : 'dddd, LT',
lastDay : '[] LT',
lastWeek: '[] dddd, LT',
sameElse : 'L'
},
relativeTime : {
future: '%sमध',
past: '%sप',
s: relativeTimeMr,
ss: relativeTimeMr,
m: relativeTimeMr,
mm: relativeTimeMr,
h: relativeTimeMr,
hh: relativeTimeMr,
d: relativeTimeMr,
dd: relativeTimeMr,
M: relativeTimeMr,
MM: relativeTimeMr,
y: relativeTimeMr,
yy: relativeTimeMr
},
preparse: function (string) {
return string.replace(/[१२३४५६७८९०]/g, function (match) {
return numberMap[match];
});
},
postformat: function (string) {
return string.replace(/\d/g, function (match) {
return symbolMap[match];
});
},
meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
meridiemHour : function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (meridiem === '') {
return hour < 4 ? hour : hour + 12;
} else if (meridiem === 'सक') {
return hour;
} else if (meridiem === '') {
return hour >= 10 ? hour : hour + 12;
} else if (meridiem === '') {
return hour + 12;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return '';
} else if (hour < 10) {
return 'सक';
} else if (hour < 17) {
return '';
} else if (hour < 20) {
return '';
} else {
return '';
}
},
week : {
dow : 0, // Sunday is the first day of the week.
doy : 6 // The week that contains Jan 6th is the first week of the year.
}
});
return mr;
})));