Different config file for different languages in Symfony2/3
<p>I want to load differents config files for each language in my Symfony app, like that:</p>

<p>AppKernel.php</p>

<pre><code>...
$loader-&gt;load($this-&gt;getRootDir().'/config/locale/'.$lang.'.'.$this-&gt;getEnvironment().'.yml');
</code></pre>

<p>config/locale/en_US.prod.yml</p>

<pre><code>parameters:
  locale: en_US
imports:
  - { resource: ../config_prod.yml }
</code></pre>

<p>config/locale/es_ES.prod.yml</p>

<pre><code>parameters:
  locale: es_ES
imports:
  - { resource: ../config_prod.yml }
</code></pre>

<p>But when I load for the first time, I think Symfony is caching the config file, and always have the same locale in the differents domains. (.com .fr .es etc)</p>

<p>There is a another way to do the same? Thanks!</p>