Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created December 16, 2012 10:53
Show Gist options
  • Save corsonr/4306287 to your computer and use it in GitHub Desktop.
Save corsonr/4306287 to your computer and use it in GitHub Desktop.
jQuery UI datepicker in French
/* French initialisation for the jQuery UI date picker plugin. */
/* Written by Keith Wood (kbwood{at}iinet.com.au) and Stéphane Nahmani (sholby@sholby.net). */
jQuery(function($){
$.datepicker.regional['fr'] = {
closeText: 'Fermer',
prevText: '<Préc',
nextText: 'Suiv>',
currentText: 'Aujourd\'hui',
monthNames: ['Janvier','Fevrier','Mars','Avril','Mai','Juin',
'Juillet','Aout','Septembre','Octobre','Novembre','Decembre'],
monthNamesShort: ['Jan','Fev','Mar','Avr','Mai','Jun',
'Jul','Aou','Sep','Oct','Nov','Dec'],
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
weekHeader: 'Sm',
dateFormat: 'dd-mm-yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: '',
minDate: 0,
maxDate: '+12M +0D',
numberOfMonths: 2,
showButtonPanel: true
};
$.datepicker.setDefaults($.datepicker.regional['fr']);
});
@babadam
Copy link

babadam commented Apr 4, 2018

Thank you

@manutheblacker
Copy link

thank you

@MrMelick-lab
Copy link

Thanks

@Skoorpiz
Copy link

Thanks !

@RichyVOC
Copy link

RichyVOC commented Sep 1, 2022

Thank you ! Merci !

@SofienM
Copy link

SofienM commented Apr 13, 2023

Tks a lot !!

@CelesteCote
Copy link

Days of the week and months of the year are not capitalized in French, FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment