Skip to content

Instantly share code, notes, and snippets.

@Neferetheka
Forked from fedir/pikadayFr.js
Created August 8, 2016 13:37
Show Gist options
  • Save Neferetheka/726c0d390aedb64b42182e627b95aa11 to your computer and use it in GitHub Desktop.
Save Neferetheka/726c0d390aedb64b42182e627b95aa11 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', 'Lun', '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
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment