code: public void setLocale(final Locale locale) {
          if (!localePreference.isCurrent(locale)) {
              setView(getCurrentView(), new Action() {
                  private boolean reloaded = false;
  
                  @Override
                  public boolean act(final float delta) {
                      if (!reloaded) {
                          reloaded = true;
                          localePreference.setLocale(locale);
                          localePreference.save();
                          reloadViews();
                      }
                      return true;
                  }
              });
          }
      }
docs: Also available as "setLocale" action in LML views. Will extract locale from actor's ID.
  
  @param locale will be set as the current application's locale. If is not equal to the current locale, will hide
  current view, reload all referenced {@link com.badlogic.gdx.utils.I18NBundle i18n bundles}, recreate
  all views and reshow the current view.