Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created December 16, 2012 10:53
Show Gist options
  • Select an option

  • Save corsonr/4306287 to your computer and use it in GitHub Desktop.

Select an option

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']);
});
@simonarruti

Copy link
Copy Markdown

Thanks you very useful.

@wilnzi

wilnzi commented Aug 27, 2017

Copy link
Copy Markdown

Thanks you !! It's work perfectly !!

@monobloclimber

Copy link
Copy Markdown

Thanks

@babadam

babadam commented Apr 4, 2018

Copy link
Copy Markdown

Thank you

@manutheblacker

Copy link
Copy Markdown

thank you

@MrMelick-lab

Copy link
Copy Markdown

Thanks

@Skoorpiz

Copy link
Copy Markdown

Thanks !

@RichyVOC

RichyVOC commented Sep 1, 2022

Copy link
Copy Markdown

Thank you ! Merci !

@SofienM

SofienM commented Apr 13, 2023

Copy link
Copy Markdown

Tks a lot !!

@CelesteCote

Copy link
Copy Markdown

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