Skip to content

Commit

Permalink
Set default language
Browse files Browse the repository at this point in the history
  • Loading branch information
tim9h committed Jun 30, 2024
1 parent 64953f0 commit 5395389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export class AppComponent implements OnInit {
const language = localStorage.getItem('language');
if (language) {
this.translateService.use(language);
// this.language = language;
} else {
this.translateService.use('de');
}
this.translateService.onDefaultLangChange.subscribe(() => {
// workaround for ngx-translate bug with mat-select
Expand Down

0 comments on commit 5395389

Please sign in to comment.