diff options
author | Tao Shen <shentao@chinamobile.com> | 2018-11-14 09:28:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-14 09:28:07 +0000 |
commit | a79f49321ee56b66011f8daba0ecaee4d6b63670 (patch) | |
tree | 448d6d06822c9e97bbd037bbb2f617a8ce8c66b2 /usecaseui-portal/src/app/app.component.ts | |
parent | 53266fd0f2709e2f1a3d87b073d317e0579fa1f0 (diff) | |
parent | 946f2383255ef8c05473251213209c301bb1c9b5 (diff) |
Merge "fix ns service instantiation for vf-c"
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); } } |