From 4b8a101a3ec9f4ea5557b1dd5fa7209898ea392e Mon Sep 17 00:00:00 2001 From: sercan Date: Thu, 24 Jun 2021 10:54:03 +0300 Subject: [PATCH] (transloco) Fixed: Language files cannot be loaded if using a base href other than "/" --- src/app/core/transloco/transloco.http-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/transloco/transloco.http-loader.ts b/src/app/core/transloco/transloco.http-loader.ts index 378bb165..166469db 100644 --- a/src/app/core/transloco/transloco.http-loader.ts +++ b/src/app/core/transloco/transloco.http-loader.ts @@ -27,6 +27,6 @@ export class TranslocoHttpLoader implements TranslocoLoader */ getTranslation(lang: string): Observable { - return this._httpClient.get(`/assets/i18n/${lang}.json`); + return this._httpClient.get(`./assets/i18n/${lang}.json`); } }