From 57fe74ade00eca858b2e185f12fe454fb426ee5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 19 Nov 2018 21:12:39 +0100 Subject: [PATCH] Now using language from localStorage in shared-components --- .../components/shared/comment-list/comment-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts index 5c6210a87..3f3af1599 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -42,7 +42,7 @@ export class CommentListComponent implements OnInit { this.roomShortId = this.route.snapshot.paramMap.get('roomId'); this.roomId = localStorage.getItem(`roomId`); this.getComments(); - this.translateService.use(sessionStorage.getItem('currentLang')); + this.translateService.use(localStorage.getItem('currentLang')); } getComments(): void { -- GitLab