Live Filter – translate text of Date field

To translate text of the date field to your language, please follow 2 steps below:

  • add this code to Custom JS field in Content Views >> Settings page:
    /* Live Filter - translate the Date field */
    $.cvp_datepicker.regional.custom = {
        closeText: "Done", // Display text for close link
        prevText: "Prev", // Display text for previous month link
        nextText: "Next", // Display text for next month link
        currentText: "Today", // Display text for current month link
        monthNames: ["January", "February", "March", "April", "May", "June",
            "July", "August", "September", "October", "November", "December"
        ], // Names of months for drop-down and formatting
        monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], // For formatting
        dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], // For formatting
        dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], // For formatting
        dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], // Column headings for days starting at Sunday
    };
    $.cvp_datepicker.resetText = "Reset"; // Text of the Reset button
    $.cvp_datepicker.setDefaults($.cvp_datepicker.regional.custom);
    /* End */
    
  • replace english words in quotes with your words

Best regards,

Scroll to Top