title: Angular4: Locale for a user
body: <p>I want to have a LoginForm and after this user enters the application - either with German or English usage. As far as I understand I can set in the <code>app.module.ts</code> something like </p>
  
  <pre><code>import { LOCALE_ID } from '@angular/core';
  providers: [{ provide: LOCALE_ID, useValue: 'de-DE' },...]
  </code></pre>
  
  <p>But that is at the startup and not when the LoginForm was already displayed :-/ Is there a way to change the locale for the whole app? (Not only for a specific component!) - Would be great if the translations could be changed as well on the fly. Any hints how to achieve? I only found the above way to deal with.</p>