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.

92 lines
3.8 KiB

//! moment.js locale configuration
//! locale : Malayalam [ml]
//! author : Floyd Pink : https://github.com/floydpink
;(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';
//! moment.js locale configuration
var ml = moment.defineLocale('ml', {
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: 'അൽപ നിിഷങങൾ',
ss: '%d സകൻഡ',
m: 'ഒരിി',
mm: '%d മിി',
h: 'ഒര മണിർ',
hh: '%d മണിർ',
d: 'ഒരിവസ',
dd: '%d ദിവസ',
M: 'ഒര',
MM: '%d മ',
y: 'ഒര വർഷ',
yy: '%d വർഷ',
},
meridiemParse: /രി|രി|ഉചച കഴി|വ|രി/i,
meridiemHour: function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (
(meridiem === 'രി' && hour >= 4) ||
meridiem === 'ഉചച കഴി' ||
meridiem === 'വ'
) {
return hour + 12;
} else {
return hour;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return 'രി';
} else if (hour < 12) {
return 'രി';
} else if (hour < 17) {
return 'ഉചച കഴി';
} else if (hour < 20) {
return 'വ';
} else {
return 'രി';
}
},
});
return ml;
})));