Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
feat(HttpLoader): make prefix & suffix public to be set dynamically
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
glenstaes authored and ocombe committed Sep 12, 2017
1 parent 1d90b2d commit 367283f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 367283f

Please sign in to comment.