From 407eb8ef1292ffeacb724c4d7a790f0d6a618948 Mon Sep 17 00:00:00 2001 From: leejinho Date: Fri, 10 Jan 2020 10:17:34 +0900 Subject: [PATCH] i18n is working --- .../components/left-side.component.html | 12 ++++++++---- .../messenger/components/left-side.component.ts | 17 +++++++++++++++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html index 5e3b53f6..5ce5889d 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html @@ -8,7 +8,11 @@ -
+
device_hub-->
; @@ -149,6 +151,14 @@ export class LeftSideComponent implements OnInit, OnDestroy { this.setFabInitial(MainMenu.Group); this.currentTabLable = MainMenu.Group; + + this.onLangChangeSubscription = merge( + this.translateService.onLangChange, + this.translateService.onDefaultLangChange, + this.translateService.onTranslationChange + ).subscribe(() => { + this.setFabInitial(this.currentTabLable); + }); } ngOnDestroy(): void { @@ -158,6 +168,9 @@ export class LeftSideComponent implements OnInit, OnDestroy { if (!!this.loginResSubscription) { this.loginResSubscription.unsubscribe(); } + if (!!this.onLangChangeSubscription) { + this.onLangChangeSubscription.unsubscribe(); + } if (!!this.badgeMessageInterval) { clearInterval(this.badgeMessageInterval);