@apalau wrote:
Hi there,
I would like to translate elements using the ngx-translate library for ionic.
The following code works perfectly in all pages of the app, except the common.ts pagethis.translate.get(['download_failed', 'was_not_successfully_downloaded']).subscribe(res => { const alertFailure = this.alertCtrl.create({ title: res.download_failed, subTitle: res.was_not_successfully_downloaded, buttons: ['OK'] }); alertFailure.present(); });I guess that the library is called after the common.ts file.
Any idea to use translation into common.ts ?
Posts: 1
Participants: 1