Hi I have a problem with translations, I'm using ng2-translate and this theme: SB Admin Bootstrap 4 Angular 4
I have an header with a language select dropdown menĂ¹, if I change language only my header component is translated but not the entire page (I have correctly configured pipes in all my project and imported translatemodule in the correct module)
My component.html is:
<app-header></app-header>
<app-sidebar></app-sidebar>
<section class="main-container">
<router-outlet></router-outlet>
</section>
In my header I have this dropdown:
<div>
<label>
{{ 'HOME.SELECT' | translate }}
<select #langSelect (change)="translate.use(langSelect.value);setLang()">
<option *ngFor="let lang of translate.getLangs()" [value]="lang" [selected]="lang === translate.currentLang">{{ lang }}</option>
</select>
</label>
</div>
What is the way to change language at entire page if it's formed by many other components?