From 8e882b2de8fe0c254ee14d9afdc1ada696af5cda Mon Sep 17 00:00:00 2001 From: umasoodch Date: Thu, 13 Oct 2022 15:03:14 +0300 Subject: [PATCH] fixed language issue --- Mohem/src/app/authentication/login/login.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mohem/src/app/authentication/login/login.component.ts b/Mohem/src/app/authentication/login/login.component.ts index b38a9945..4b97bf7c 100644 --- a/Mohem/src/app/authentication/login/login.component.ts +++ b/Mohem/src/app/authentication/login/login.component.ts @@ -106,11 +106,12 @@ export class LoginComponent implements OnInit, OnDestroy { ngOnInit() { this.monitorKeyboardChange(); this.userInfo = JSON.parse(localStorage.getItem('digitalIDUser')); - this.currentLang = TranslatorService.getCurrentLanguageCode(); - + // this.currentLang = TranslatorService.getCurrentLanguageCode(); + this.currentLang = 2; + this.ts.setCurrentLanguage('en'); // if (this.currentLang == 2) { // this.language = "US"; - // this.changeLanguage('2') + this.changeLanguage('2') // } else { // this.language = "AR"; // this.changeLanguage('1')