(transloco) Fixed: Language files cannot be loaded if using a base href other than "/"

This commit is contained in:
sercan 2021-06-24 10:54:03 +03:00
parent 8080a85d40
commit 4b8a101a3e

View File

@ -27,6 +27,6 @@ export class TranslocoHttpLoader implements TranslocoLoader
*/
getTranslation(lang: string): Observable<Translation>
{
return this._httpClient.get<Translation>(`/assets/i18n/${lang}.json`);
return this._httpClient.get<Translation>(`./assets/i18n/${lang}.json`);
}
}