In Struts 2 version 2.3.28, the i18n
interceptor only accepts the locales which are registered to jvm, the list which is returned by Locale.getAvailableLocales()
.
Well, although I can extend the list of available Java Locales, as mentioned How to extend the list of available Java Locales, is it any short way that set this interceptor to accept all strings as locale (for example fa_IR
) ?!
Just a note: Setting the default locale to fa_IR
( <constant name="struts.locale" value="fa_IR" />
) works fine.