Skip to content

Instantly share code, notes, and snippets.

@Quessada
Created March 25, 2020 16:08
Show Gist options
  • Save Quessada/57f1e1837626de9c39046cd1d8e5a744 to your computer and use it in GitHub Desktop.
Save Quessada/57f1e1837626de9c39046cd1d8e5a744 to your computer and use it in GitHub Desktop.
Tradução para o Date Range Picker Time para PT-BR
$('input[name="datetimes"]').daterangepicker({
timePicker: true,
startDate: moment().startOf('hour'),
endDate: moment().startOf('hour').add(32, 'hour'),
locale: {
"format": 'DD/MM/YYYY hh:mm A',
"separator": '~',
"applyLabel": 'Confirmar',
"cancelLabel": 'Cancelar',
"daysOfWeek": [
"Dom",
"Seg",
"Ter",
"Qua",
"Qui",
"Sex",
"Sab"
],
"monthNames": [
"Jan",
"Fev",
"Mar",
"Abr",
"Mai",
"Jun",
"Jul",
"Ago",
"Set",
"Out",
"Nov",
"Dez"
],
"firstDay" : 0
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment