Skip to content

Instantly share code, notes, and snippets.

@fedir
Created July 23, 2014 14:15
Show Gist options
  • Save fedir/9d158c35144d5511bfde to your computer and use it in GitHub Desktop.
Save fedir/9d158c35144d5511bfde to your computer and use it in GitHub Desktop.
Pikaday French i18n
var i18n = {
previousMonth : 'Mois précédent',
nextMonth : 'Mois prochain',
months : ['Janvier','Février', 'Mars','Avril','Mai','Juin','Juillet','Août','Septembre',"Octobre","Novembre","Décembre"],
weekdays : ['dimanche'," lundi "," mardi "," mercredi "," jeudi "," vendredi "," samedi "],
weekdaysShort : ['Dim', 'Mon', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam']
};
$("#date").pikaday({
format: "YYYY-MM-DD", //adjust to your liking
changeMonth: true,
changeYear: true,
maxDate: moment().toDate(),
yearRange: [2010,2020],
i18n: i18n,
firstDay:1
});
@Alatreon
Copy link

Alatreon commented Aug 7, 2018

The short name for monday is actually wrong

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