Open sobrito opened 6 years ago
Inside component or service :
this.translate.instant(key);
(translate is an instance of TranslateService from @ngx-translate/core)
Just call this method when cols are declared ; for titles and placeholders.
To translate pagination inside component html :
<pagination *ngIf="config.paging"
firstText="{{ 'yourTranslateKey' | translate }}"
nextText="{{ 'yourTranslateKey' | translate }}"
previousText="{{ 'yourTranslateKey' | translate }}"
lastText="{{ 'yourTranslateKey' | translate }}"
...>
</pagination>
I am using the ngx-translate/core, how is possível translate the header and the placeholder?