code: public void saveLocaleInPreferences(final String preferencesPath, final String preferenceName) {
          if (Strings.isEmpty(preferencesPath) || Strings.isEmpty(preferenceName)) {
              throw new GdxRuntimeException(
                      "Preference path and name cannot be empty! These are set automatically if you annotate a path to preference with @I18nBundle and pass a corrent path to the preferences.");
          }
          final Preferences preferences = ApplicationPreferences.getPreferences(preferencesPath);
          preferences.putString(preferenceName, fromLocale(currentLocale.get()));
          preferences.flush();
      }
docs: Saves current locale in the selected preferences.
  
  @param preferencesPath used to retrieve preferences with
  {@link com.github.czyzby.kiwi.util.gdx.preference.ApplicationPreferences#getPreferences(String)}
  method.
  @param preferenceName name of the locale setting in the preferences.