Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/app/Resources/public/assets/moment/locale/mr.js

120 lines
4.5 KiB

// moment.js locale configuration
// locale : Marathi (mr)
// author : Harshad Kale : https://github.com/kalehv
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
}
}(function (moment) {
var symbolMap = {
'1': '१',
'2': '२',
'3': '३',
'4': '४',
'5': '५',
'6': '६',
'7': '७',
'8': '८',
'9': '९',
'0': '०'
},
numberMap = {
'१': '1',
'२': '2',
'३': '3',
'४': '4',
'५': '5',
'६': '6',
'७': '7',
'८': '8',
'९': '9',
'०': '0'
};
return moment.defineLocale('mr', {
months : 'ज_फ_मच_एपिल_म_जन_ज_ऑगसट_सपबर_ऑकबर_नबर_डिबर'.split('_'),
monthsShort: 'ज._फ._मच._एपि._म._जन._ज._ऑग._सप._ऑक._न._डि.'.split('_'),
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, LT',
LLLL : 'dddd, D MMMM YYYY, LT'
},
calendar : {
sameDay : '[आज] LT',
nextDay : '[उद] LT',
nextWeek : 'dddd, LT',
lastDay : '[कल] LT',
lastWeek: '[मल] dddd, LT',
sameElse : 'L'
},
relativeTime : {
future : '%s नतर',
past : '%s प',
s : 'सद',
m: 'एक मििट',
mm: '%d मिि',
h : 'एक तस',
hh : '%d तस',
d : 'एक दिवस',
dd : '%d दिवस',
M : 'एक महि',
MM : '%d महि',
y : 'एक वरष',
yy : '%d वर'
},
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 1st is the first week of the year.
}
});
}));