Skip to content

Instantly share code, notes, and snippets.

@adanzilla
Created October 8, 2015 17:43
Show Gist options
  • Save adanzilla/e4fa382844ad3b331162 to your computer and use it in GitHub Desktop.
Save adanzilla/e4fa382844ad3b331162 to your computer and use it in GitHub Desktop.
jQuery - Cambia el lenguaje del DATEPICKER A ESPAÑOL
/* Cambia el lenguaje del datepicker a español */
jQuery.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
monthNamesShort: ['Ene','Feb','Mar','Abr', 'May','Jun','Jul','Ago','Sep', 'Oct','Nov','Dic'],
dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
weekHeader: 'Sm',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''
};
jQuery.datepicker.setDefaults(jQuery.datepicker.regional['es']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment