Translate elements with ngx-translate in common.ts file

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 page

this.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']

I guess that the library is called after the common.ts file.

Any idea to use translation into common.ts ?

Are you using lazy loading? Did you double check that your common.module.ts contains TranslateModule.forChild() ?