I am currently using ngx-translate for handling translations in my Angular application. Everything is functioning properly when the translation files are stored within the app itself. However, I want to move all of my JSON translation files to an AWS S3 bucket and use them with ngx-translate.
I am unsure how to modify my HttpLoaderFactory function to make it compatible with ngx-translate and AWS S3:
export function HttpLoaderFactory(http: HttpClient, translate: TranslateService) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json'); //Unable to use S3:// URL here
}
I have not been able to find any information on achieving this online. If anyone has a solution or suggestion on how to accomplish this, I would greatly appreciate the opportunity to test it out on my app!
Jb