The ngx-translate
's translate
pipe does not work inside the ng-bootstrap
's modal.
<div class="modal-header">
<h3 class="modal-title">
{{ 'MODAL.TITLE' | translate }}
</h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" (click)="activeModal.close('Close click')">
<span class="fa fa-remove"></span> {{ 'BUTTON.CLOSE' | translate }}
</button>
</div>
On the
ngx-translate
Readme, it's written :So what are the differences?
In Angular >= 4.3.x, instead of providing
Http
to theTranslateModule
, you now need to provideHttpClient
:app.module.ts :
I forked and fixed the Angular Demo (4.3.6) : https://plnkr.co/edit/1VZdWdQvat3lxaXYVZs3?p=preview