fix showing transport in calendar popup
This commit is contained in:
@ -101,16 +101,18 @@ Date.prototype.getDayEuropean = function () {
|
||||
};
|
||||
|
||||
// Helper function to convert month name to 0-based index
|
||||
exports.getMonthNames = function () {
|
||||
return ["януари", "февруари", "март", "април", "май", "юни", "юли", "август", "септември", "октомври", "ноември", "декември"];
|
||||
}
|
||||
exports.getMonthIndex = function (monthName) {
|
||||
const monthNames = ["януари", "февруари", "март", "април", "май", "юни", "юли", "август", "септември", "октомври", "ноември", "декември"];
|
||||
return monthNames.indexOf(monthName.toLowerCase());
|
||||
return exports.getMonthNames().indexOf(monthName.toLowerCase());
|
||||
};
|
||||
|
||||
exports.getMonthName = function (monthIndex) {
|
||||
const monthNames = ["януари", "февруари", "март", "април", "май", "юни", "юли", "август", "септември", "октомври", "ноември", "декември"];
|
||||
return monthNames[monthIndex];
|
||||
return exports.getMonthNames()[monthIndex];
|
||||
};
|
||||
|
||||
|
||||
exports.getMonthNameEn = function (monthIndex) {
|
||||
const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
||||
return monthNames[monthIndex];
|
||||
|
Reference in New Issue
Block a user