I am using ngx-translate in Angular(v6) with lazy-loading approach. I am facing a problem with translate.instant('Title')
Using translate pipe it works fine.( {{'Title' | translate}}
)
Using translate.instant()
method the default language always works, but I am unable to change language via language selector(select component used for switching language) which is in shared module.
I don't want to use this.translate.onLangChange.subscribe
each time, is there an alternative to using this method?