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

Commit

Permalink
fix(HttpLoader): loading of translations when base-href is set
Browse files Browse the repository at this point in the history
BREAKING CHANGE: this change might mess up with urls, I prefer to have a major version for it. If you have problems with your urls, check if base-href has been set correctly
  • Loading branch information
joachimprinzbach authored and ocombe committed Sep 13, 2017
1 parent 367283f commit c801802
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, 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
Expand Down

0 comments on commit c801802

Please sign in to comment.