Home > FAQs > How do we change locales |

Apache Struts 2 Documentation
How do we change locales
Edit Page Browse Space Add Page Add News

Simply include a parameter in the request, either from a link or a form, that sets the `requst_locale` parameter to the language and (optionally) counry code to use.

The default interceptor stack includes an i18n interceptor that watches for the `request_locale` parameter. The parameter name is configurable.

An alternative is to set the locale by calling the `setLocale` method of ActionSupport.