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 9, 2024
1 parent b922041 commit cfbbe95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloudapp/src/app/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export class FooterComponent implements OnInit {
) { }

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

this.translate.use(savedLang);
if (!localStorage.getItem('currentLang')) {
localStorage.setItem('currentLang', 'jp');
localStorage.setItem('currentLang', 'jp');
}
}


setLang(lang: string) {
this.translate.use(lang);
Expand Down

0 comments on commit cfbbe95

Please sign in to comment.