@FrancoisIonic wrote:
Hi guys, I had this problem today with ngx-translate, it was because of an issue to relative path of assets:
This is the tutorial:
export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http); }
Use this instead:
export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http, './assets/i18n/', '.json'); }
If you want the factory to work on ionic build/run (then in iOS & Android).
Hope this helps
Posts: 1
Participants: 1