Reputation: 13510
We use rich:calendar
component.
It's default locale is English - names of months and other labels.
How to plug other than En
locale?
Thank you.
Upvotes: 2
Views: 1501
Reputation: 1108742
You can set the locale by the locale
attribute which points to java.util.Locale
:
<rich:calendar locale="#{bean.locale}" />
Or when you already have a <f:view locale="#{bean.locale}">
for i18n:
<rich:calendar locale="#{facesContext.viewRoot.locale}" />
Upvotes: 2