Skip to content

Instantly share code, notes, and snippets.

@flistefliste
Last active April 3, 2023 23:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save flistefliste/34db61c54e29e26a1737 to your computer and use it in GitHub Desktop.
Save flistefliste/34db61c54e29e26a1737 to your computer and use it in GitHub Desktop.
French translation for Materialize CSS datepicker plugin
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 2, // Creates a dropdown of 15 years to control year
labelMonthNext: 'Mois suivant',
labelMonthPrev: 'Mois précédent',
labelMonthSelect: 'Selectionner le mois',
labelYearSelect: 'Selectionner une année',
monthsFull: [ 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre' ],
monthsShort: [ 'Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Jun', 'Jul', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec' ],
weekdaysFull: [ 'Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi' ],
weekdaysShort: [ 'Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam' ],
weekdaysLetter: [ 'D', 'S', 'T', 'Q', 'Q', 'S', 'S' ],
today: 'Aujourd\'hui',
clear: 'Réinitialiser',
close: 'Fermer',
format: 'dd/mm/yyyy'
});
@Ahmedlag
Copy link

Merci infiniment 👍

@Chevallm
Copy link

Chevallm commented Sep 6, 2017

J'aurais même une modification à rajouter :
firstDay:1
Et la première colonne tombe sur le Lundi.
Bon travail 👍

@Web4Change
Copy link

Merci !
Une petite modif :
weekdaysLetter: [ 'D', 'S', 'T', 'Q', 'Q', 'S', 'S' ]
devrait être
weekdaysLetter: [ 'D', 'L', 'M', 'M', 'J', 'V', 'S' ]

@avatarvb
Copy link

avatarvb commented Jul 25, 2019

nice work, but it does not work, we must first
$('.timepicker').timepicker({
i18n: {
//YOUR CODE HERE...
},
// other opt
});

SOURCE : https://stackoverflow.com/a/55550280/7343283

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