From 367283f41047f2b409f623cf1bc61d63b571dea5 Mon Sep 17 00:00:00 2001 From: Glen Staes Date: Tue, 12 Sep 2017 15:41:12 +0200 Subject: [PATCH] feat(HttpLoader): make prefix & suffix public to be set dynamically This allows developers to update the path where the translation files are loaded from. It might be possible that this path is some kind of configuration option within the application. --- 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 bd65a63..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, private prefix: string = "/assets/i18n/", private suffix: string = ".json") {} + constructor(private http: HttpClient, public prefix: string = "/assets/i18n/", public suffix: string = ".json") {} /** * Gets the translations from the server