diff options
author | guochuyicmri <guochuyi@chinamobile.com> | 2018-11-14 16:27:11 +0800 |
---|---|---|
committer | guochuyicmri <guochuyi@chinamobile.com> | 2018-11-14 16:27:58 +0800 |
commit | 946f2383255ef8c05473251213209c301bb1c9b5 (patch) | |
tree | 404ebfa795d1979f9710274c5f6cccc4d4591110 /usecaseui-portal/src/app/app.component.ts | |
parent | 5ac64c3efb45812c5277d1c3728d55418d60e6ca (diff) |
fix ns service instantiation for vf-c
Change-Id: I88e5e856c88859dc990a1c50b61e3c3639ba3b79
Issue-ID: USECASEUI-160
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/app.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/app.component.ts | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/usecaseui-portal/src/app/app.component.ts b/usecaseui-portal/src/app/app.component.ts index be13c1a1..42907270 100644 --- a/usecaseui-portal/src/app/app.component.ts +++ b/usecaseui-portal/src/app/app.component.ts @@ -13,22 +13,13 @@ export class AppComponent { translate.setDefaultLang('en'); // translate.use('en'); } - changeLanguage(Language): void { - switch(Language){ - case 'en': - this.translate.use('en'); - break; - case 'zh': - this.translate.use('zh'); - } - } + // 多语言 Language:String[] = ["zh","en"]; selectLanguage = "en"; - changeLanguage1(){ - this.translate.use(this.selectLanguage); - } - changeLanguage2(item){ + + changeLanguage(item){ + this.selectLanguage = item; this.translate.use(item); } } |