You need to add a JavaScript
code to specify the labels on primefaces schedule component, then import the code on the page of p:schedule
, for example i am modifying the language to french, just put locale="fr"
in schedule, this is my code :
PrimeFaces.locales ['fr'] = {
closeText: 'Fermer',
prevText: 'Précédent',
nextText: 'Suivant',
monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
monthNamesShort: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jun', 'Jul', 'Aoû', 'Sep', 'Oct', 'Nov', 'Déc'],
dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
.....
};
You can change the labels however you like