I've defined my supported languages in faces-config.xml
as follow:
<locale-config>
<default-locale>fa</default-locale>
<supported-locale>fa</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
How can I access supported locales in a ManagedBean
? e.g. to populate a list with corresponding items.
FacesContext.getCurrentInstance().getApplication().getSupportedLocales()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With