configuring language in Bootstrap Date Range Picker
You can use moment-with-locales.min.js instead of moment.min.js
<script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/latest/moment-with-locales.min.js"></script>
and set localization before initializing daterangepicker
moment.locale('es');
$('#datePicker').daterangepicker();
Include the locale
option and edit the appropriate strings, like fromLabel
or December
:
$('#datePicker').daterangepicker({
"locale": {
"format": "MM/DD/YYYY",
"separator": " - ",
"applyLabel": "Apply",
"cancelLabel": "Cancel",
"fromLabel": "From",
"toLabel": "To",
"customRangeLabel": "Custom",
"daysOfWeek": [
"Su",
"Mo",
"Tu",
"We",
"Th",
"Fr",
"Sa"
],
"monthNames": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
],
"firstDay": 1
}
})
here is a demo with spanish month names -> http://jsfiddle.net/r21747qc/