diff --git a/src/app/components/participant/comment-create-page/comment-create-page.component.ts b/src/app/components/participant/comment-create-page/comment-create-page.component.ts index 9de4cb5ffa66b4e9691f68d6f2f29ae281115e5d..ef80b582adebf1f03b83d85d6c756c27364512ac 100644 --- a/src/app/components/participant/comment-create-page/comment-create-page.component.ts +++ b/src/app/components/participant/comment-create-page/comment-create-page.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, Input, ViewChild } from '@angular/core'; +import { Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Location } from '@angular/common'; import { Comment } from '../../../models/comment'; diff --git a/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts b/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts index dfcf3e56d452a69a7648cfc0211f7e1f8e131a20..c2668f6618f98b1b7088e6150f8fec285613af07 100644 --- a/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts +++ b/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts @@ -41,7 +41,7 @@ export class ContentChoiceParticipantComponent implements OnInit { ngOnInit() { this.initAnswers(); - this.translateService.use(sessionStorage.getItem('currentLang')); + this.translateService.use(localStorage.getItem('currentLang')); } initAnswers(): void { diff --git a/src/app/components/participant/content-text-participant/content-text-participant.component.ts b/src/app/components/participant/content-text-participant/content-text-participant.component.ts index 2b33ea6dd36609609d3df53a991d3ec936662d9c..9b808cfde74df0b33ab834747a77160fe77c1d38 100644 --- a/src/app/components/participant/content-text-participant/content-text-participant.component.ts +++ b/src/app/components/participant/content-text-participant/content-text-participant.component.ts @@ -25,7 +25,7 @@ export class ContentTextParticipantComponent implements OnInit { } ngOnInit() { - this.translateService.use(sessionStorage.getItem('currentLang')); + this.translateService.use(localStorage.getItem('currentLang')); } submitAnswer() { diff --git a/src/app/components/participant/home-participant-page/home-participant-page.component.ts b/src/app/components/participant/home-participant-page/home-participant-page.component.ts index 47b51c925137c474ee32e7fbf908e264034ff987..f7b75def09d98db7f62ca4b6d3ac8ce51a7df247 100644 --- a/src/app/components/participant/home-participant-page/home-participant-page.component.ts +++ b/src/app/components/participant/home-participant-page/home-participant-page.component.ts @@ -15,7 +15,7 @@ export class HomeParticipantPageComponent implements OnInit { } ngOnInit() { - this.translateService.use(sessionStorage.getItem('currentLang')); + this.translateService.use(localStorage.getItem('currentLang')); } } diff --git a/src/app/components/participant/room-participant-page/room-participant-page.component.ts b/src/app/components/participant/room-participant-page/room-participant-page.component.ts index b6d4f2c69c14dcb6a2fbd90e2bfe922efe11f4c1..52b90efc3b6edeb2bbe6f9fdf45f05c1a5cef0e3 100644 --- a/src/app/components/participant/room-participant-page/room-participant-page.component.ts +++ b/src/app/components/participant/room-participant-page/room-participant-page.component.ts @@ -28,7 +28,7 @@ export class RoomParticipantPageComponent implements OnInit { this.route.params.subscribe(params => { this.getRoom(params['roomId']); }); - this.translateService.use(sessionStorage.getItem('currentLang')); + this.translateService.use(localStorage.getItem('currentLang')); } getRoom(id: string): void {