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

Commit

Permalink
No more error when browser is set to any lagnuage otherthan en (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleylord8 authored and dgterry committed Nov 30, 2016
1 parent da0f441 commit 86a4c04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/webapp/ts/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,17 @@ export class AppComponent {
this.langData.Description,
false, null, null));
},
error => alert (JSON.stringify (error)));
error => {
let lang_url = 'locale/en.json';
this.http.get(lang_url).map(res => res.json()).subscribe(
data => {
this.langData = data;
this.segments.push (new DialogResponse (
this.langData.Description,
false, null, null));
},
error => alert (JSON.stringify (error)));
});
}
private ngAfterViewInit (_dialogService : DialogService) {
this.checkSetup(_dialogService);
Expand Down

0 comments on commit 86a4c04

Please sign in to comment.