Get the value of --locale on runtime for an AOT compiled Angular App : <p>I have an multilanguale app which is compiled with --aot in each language, for instance for German:</p>

<pre><code>ng build --aot --env=prod --prod --build-optimizer --i18nFile=src/locale/DARI_messages_de_DE.xlf --i18nFormat=xlf --locale=de --missingTranslation warning --output-path dist/de --base-href /de/
</code></pre>

<p>We need want to get the value on locale on runtime to handle it over to our backend too.</p>

<p>If have looked tryed to get from </p>

<pre><code>    import { LOCALE_ID } from '@angular/core';

constructor(private modalService: BsModalService) {
  console.log("LOCALE_ID", LOCALE_ID);
}
</code></pre>

<p>But the LOCAL_ID is empty I think it only for use with JIT</p>

<p>Is there any method to get this parameter on runtime?</p>
