|
|
@ -40,13 +40,13 @@ export class AppComponent implements OnInit {
|
|
|
|
__webpack_public_path__ = base + "/dist/";
|
|
|
|
__webpack_public_path__ = base + "/dist/";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no"]);
|
|
|
|
this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no", "po", "pt-br"]);
|
|
|
|
// this language will be used as a fallback when a translation isn't found in the current language
|
|
|
|
// this language will be used as a fallback when a translation isn't found in the current language
|
|
|
|
this.translate.setDefaultLang("en");
|
|
|
|
this.translate.setDefaultLang("en");
|
|
|
|
|
|
|
|
|
|
|
|
// See if we can match the supported langs with the current browser lang
|
|
|
|
// See if we can match the supported langs with the current browser lang
|
|
|
|
const browserLang: string = translate.getBrowserLang();
|
|
|
|
const browserLang: string = translate.getBrowserLang();
|
|
|
|
this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no/) ? browserLang : "en");
|
|
|
|
this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no|po|pt-br/) ? browserLang : "en");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ngOnInit() {
|
|
|
|
public ngOnInit() {
|
|
|
|