Created
October 12, 2017 13:43
-
-
Save Bewitchedyegor/d5896d3834ddb532abee03f272e27e44 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