Hi,
I’m trying to change le locale programaticaly , but it seems not to work :
@Subscribe("localesField")
public void onLocalesFieldValueChange(HasValue.ValueChangeEvent event) {
Locale locale = (Locale)event.getValue();
log.info(locale.toString());
if (locale != null && !locale.equals(jmixApp.getLocale())) {
App.getInstance().setLocale(locale);
App.getInstance().createTopLevelWindow(AppUI.getCurrent());
}
}
private void initLocalesField() {
localesField.setOptionsMap(messageTools.getAvailableLocalesMap());
localesField.setValue(jmixApp.getLocale());
}
It’s not working, my app is already in English.
I’m using jmix 1.4 and OIDC (keycloak) plugins
Best regards
Alexandre