Open Who-Code opened 7 years ago
You must change the text of the buttons with this...
$(document).ready(function() {
$('#datum').bootstrapMaterialDatePicker({
format: 'DD/MM/YYYY HH:mm:ss',
lang: 'de',
weekStart: 1,
cancelText: 'Stornieren',
okText: 'Akzeptieren',
clearText: 'Rücksetzen',
switchOnClick: true,
clearButton: true,
minDate: new Date()
});
});
Greetings
Using Datepicker with locale and using lang: 'de' only changes content language the "OK" and "CANCEL" buttons stay in english