code: public void setLocales(Locale... locales) {
  
      String[] array = new String[locales.length];
      for (int i = 0; i < locales.length; i++) {
        array[i] = locales[i].toString();
      }
      setLocales(array);
    }
docs: This method sets the {@link #getLocales() locales}.
  
  @param locales are the locales to set