I'm using ngx-translate to translate buttons, headers, ... in my app and this works fine. My translation files are in the /assets/i18n/ folder.
Now I have mockdata which I also have to translate, but my mockdata is in another directory -> /assets/data/
To load my json translations files from the i18n folder I use:
export function setTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
but now I also want to load the files from the data directory.
How can I achieve that?