How to translate calendar in Daterangepicker

To translate Daterangepicker into your language you need to add translations during script initialization.

Initial values:

$("#your_input_id").daterangepicker(
{
locale: {
"daysOfWeek": [
"Su",
"Mo",
"Tu",
"We",
"Th",
"Fr",
"Sa"
],
"monthNames": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
],
"applyLabel": "Apply",
"cancelLabel": "Cancel",
"fromLabel": "From",
"toLabel": "To",
"customRangeLabel": "Custom",
}
});

Replace those values with your language. 

Comments

No comments yet, you can leave yours: