How to use ngneat-transloco with primeng?
Posted: 09 Jan 2021, 00:36
Hi, I'm trying ngneat-transloco library to internationalize my angular app (as alternative to using ngx-translate). I get it to work but struggling to get primeng-components translated (such as a calender e.g.).
For ngx-translate i understand that the approach is to use PrimeNGConfig like this:
But how to achieve the same with transloco? I would appreciate any hints.
Transloco documentation: https://ngneat.github.io/transloco/docs/translation-api
For ngx-translate i understand that the approach is to use PrimeNGConfig like this:
Code: Select all
this.translateService.get('primeng').subscribe(res => this.primengconfig.setTranslation(res));
Transloco documentation: https://ngneat.github.io/transloco/docs/translation-api