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