From 783d58e2e1697bfdf00ab6a0b6def692be930f94 Mon Sep 17 00:00:00 2001 From: Olivier Combe Date: Wed, 13 Sep 2017 23:19:33 +0200 Subject: [PATCH] Revert "fix(HttpLoader): loading of translations when base-href is set" (#27) This reverts commit c8018029ba293a07a43684cc491686595fe27a37. --- src/http-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http-loader.ts b/src/http-loader.ts index df2cdb1..9b2388c 100644 --- a/src/http-loader.ts +++ b/src/http-loader.ts @@ -3,7 +3,7 @@ import {TranslateLoader} from "@ngx-translate/core"; import "rxjs/add/operator/map"; export class TranslateHttpLoader implements TranslateLoader { - constructor(private http: HttpClient, public prefix: string = "./assets/i18n/", public suffix: string = ".json") {} + constructor(private http: HttpClient, public prefix: string = "/assets/i18n/", public suffix: string = ".json") {} /** * Gets the translations from the server