Yes actually, I didn't say it, but then I also tried this way and I'm still using it, but getLocale() and setLocale() ignore it. Also because Settings does not overwrite the values of the config files, but allows you to store them in the database and use those stored in the files only if they do not exist in the database.
I have seen that if I change the value in the "system\HTTP\IncomingRequest.php" file constructor:
from
PHP Code:
$this->validLocales = $config->supportedLocales;
to
PHP Code:
$this->validLocales = service('settings')->get('App.supportedLocales');
then it works fine as I expect, but I would like to avoid modifying the files under system folder.