I am new to this field. While in the browser it turns out to read the current localization and the list of possible:
LocaleInfo.getCurrentLocale().getLocaleName()
and
for (String s : LocaleInfo.getAvailableLocaleNames()) { ... }
I would like to programmatically (for example, in a client-side dialog) set a locale, i.e. something like setLocaleName(s)
;
I searched, found nothing, apparently looking for the wrong place. Is this even possible?
UPD
As suggested by @krivenko tried through Window.open (...) , the locale has changed, but as suggested the application has restarted from the beginning.
The question of how to take ALL the contents of the address bar of the browser remained, I restarted hard by inserting the URL into the text of the program.
Actually, I need to control the behavior of the methods of classes that extend the gwt.i18n.client.Messages / Сonstants classes.
Perhaps it will be enough to be able to dynamically change <meta name = "gwt: property" content = "locale = x_Y">.
But I can not find how to get to it.