Let us see how we can display an inline calendar with multiple months displayed in the French locale and register the dateSelect
event listener.
Configure the locale-specific Calendar labels in the
calendarLocales.js
file and save it in theresources/js
folder:<script type="text/javascript"> PrimeFaces.locales['tr'] = { closeText: 'kapat', prevText: 'geri', nextText: 'ileri', currentText: 'bugün', monthNames: ['Ocak','Subat','Mart','Nisan','Mayis','Haziran','Temmuz','Agustos','Eylül','Ekim','Kasim','Aralik'], monthNamesShort: ['Oca','Sub','Mar','Nis','May','Haz', 'Tem','Agu','Eyl','Eki','Kas','Ara'], dayNames: ['Pazar','Pazartesi','Sali','Çarsamba','Persembe','Cuma','Cumartesi'], dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], weekHeader: 'Hf', firstDay: 1, isRTL: false, showMonthAfterYear...