Skip to content

Commit

Permalink
URM-235599
Browse files Browse the repository at this point in the history
NACSIS-ILL: The Cloud App's language changes to English without user action
  • Loading branch information
jawanbdarni committed Dec 1, 2024
1 parent c6d4640 commit af6071e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cloudapp/src/app/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ export class FooterComponent implements OnInit {

ngOnInit() {
this.translate.use('jp');
const savedLang = localStorage.getItem('currentLang') || 'jp';
this.translate.use(savedLang);

if (!localStorage.getItem('currentLang')) {
localStorage.setItem('currentLang', 'jp');
}
}

setLang(lang: string) {
this.translate.use(lang);
localStorage.setItem('currentLang', lang);
}

}

0 comments on commit af6071e

Please sign in to comment.