-
-
Save uzbekdev1/ba1b52c082c4b05e644b9ffde112e0a2 to your computer and use it in GitHub Desktop.
Localize Bootstrap daterangepicker to Russian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('input[id="pick_period2"]').daterangepicker({ | |
singleDatePicker: true, | |
showDropdowns: false, | |
minDate: moment(today).add(1, 'days'), | |
maxDate: moment(today).add(45, 'days'), | |
//add locale to your daterangepicker call function | |
locale: { | |
format: 'DD-MM-YYYY', | |
applyLabel: 'Принять', | |
cancelLabel: 'Отмена', | |
invalidDateLabel: 'Выберите дату', | |
daysOfWeek: ['Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс', 'Пн'], | |
monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'], | |
firstDay: 1 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment