Select a locale using the custom URL parameter in GWT

Is it possible to change the name of the URL parameter that tells GWT which language to load in order to be a custom parameter instead of "locale"?

For example, instead of being:

http://myapp.com/?locale=en

This will:

http://myapp.com/?language=en

I need to change the name because I have no control over the host page and URLs from which the language will be downloaded, although they have a certain parameter for choosing the locale (whose name is not local, of course).

+4
source share
1 answer

Add the following to your gwt.xml file:

<set-configuration-property name="locale.queryparam" value="language"/>
+4
source

All Articles