diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts
index 280356f..9089795 100644
--- a/src/app/login/login.component.ts
+++ b/src/app/login/login.component.ts
@@ -79,8 +79,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
private UserSub: Subscription = new Subscription();
public heightUpdate: Observable;
public uZaddrUpdate: Observable;
- public userUpdate:Observable;
- public ownerUpdate:Observable;
+ public userUpdate: Observable;
+ public ownerUpdate: Observable;
public txsUpdate: Observable;
prompt: boolean = false;
confirmedMemo: boolean = false;
@@ -93,16 +93,18 @@ export class LoginComponent implements OnInit, AfterViewInit {
entryForm: UntypedFormGroup;
pinForm: UntypedFormGroup;
- public vE = {
+ //
+ // Language Support
+ //
+ vE = {
loginConfirmLogin : '',
loginConnectToZGo : '',
loginEnterPin : '',
loginLastBlock : '',
loginLinkWallet : ''
}
-
- public zgoLanguage: string = 'en-US';
-
+ //
+ // ------------------------------------------------------------
constructor(
private fb: UntypedFormBuilder,
private activatedRoute: ActivatedRoute,
@@ -113,6 +115,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
private _changeDetectorRef: ChangeDetectorRef,
private languageService: LanguageService
){
+
//this.fullnodeService.getAddr();
this.entryForm = fb.group({
selectedSession: [0.001, Validators.required]
@@ -157,24 +160,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
}
ngOnInit(){
-
- this.languageService.getViewElements('login', this.zgoLanguage).subscribe(
- response => {
- console.log('Received >> ', response );
- console.log('Language Code : ', response.language);
- console.log('Component Name : ',response.component);
- console.log('Language data : ',response.data);
- console.log('Login_Last_Block -> ',response.data.login_last_block);
-
- this.vE.loginLastBlock = response.data.login_last_block;
- this.vE.loginConnectToZGo = response.data.login_connect_to_zgo;
- this.vE.loginLinkWallet = response.data.login_link_wallet;
- this.vE.loginConfirmLogin = response.data.login_confirm_login;
- this.vE.loginEnterPin = response.data.login_enter_pin;
- },
- error => { console.log('Error >> ',error); }
- );
-
+ this.chgUILanguage();
this.intervalHolder = setInterval(() => {
this.fullnodeService.getHeight();
//this.userService.findUser();
@@ -247,27 +233,23 @@ export class LoginComponent implements OnInit, AfterViewInit {
clearInterval(this.intervalHolder);
}
- changeLanguage(){
- if ( this.zgoLanguage == 'en-US' ) {
- this.zgoLanguage = 'es-US';
- } else {
- this.zgoLanguage = 'en-US';
- }
- this.languageService.getViewElements('login', this.zgoLanguage).subscribe(
- response => {
- console.log('Received >> ', response );
- console.log('Language Code : ', response.language);
- console.log('Component Name : ',response.component);
- console.log('Language data : ',response.data);
- console.log('Login_Last_Block -> ',response.data.login_last_block);
+ chgUILanguage(){
+ console.log('LOGIN.chgUILanguage Called ');
+ this.languageService.getViewElements('login').subscribe(
+ response => {
+ console.log('Received >> ', response );
+ console.log('Language Code : ', response.language);
+ console.log('Component Name : ',response.component);
+ console.log('Language data : ',response.data);
+ console.log('Login_Last_Block -> ',response.data.login_last_block);
- this.vE.loginLastBlock = response.data.login_last_block;
- this.vE.loginConnectToZGo = response.data.login_connect_to_zgo;
- this.vE.loginLinkWallet = response.data.login_link_wallet;
- this.vE.loginConfirmLogin = response.data.login_confirm_login;
- this.vE.loginEnterPin = response.data.login_enter_pin;
- },
- error => { console.log('Error >> ',error); }
- );
+ this.vE.loginLastBlock = response.data.login_last_block;
+ this.vE.loginConnectToZGo = response.data.login_connect_to_zgo;
+ this.vE.loginLinkWallet = response.data.login_link_wallet;
+ this.vE.loginConfirmLogin = response.data.login_confirm_login;
+ this.vE.loginEnterPin = response.data.login_enter_pin;
+ },
+ error => { console.log('Error >> ',error); }
+ );
}
}
diff --git a/src/assets/brazil.png b/src/assets/brazil.png
new file mode 100644
index 0000000..7a1c53b
Binary files /dev/null and b/src/assets/brazil.png differ
diff --git a/src/assets/flag-spacer.png b/src/assets/flag-spacer.png
new file mode 100644
index 0000000..2ab5e16
Binary files /dev/null and b/src/assets/flag-spacer.png differ
diff --git a/src/assets/flag-spacer.xcf b/src/assets/flag-spacer.xcf
new file mode 100644
index 0000000..e9c690e
Binary files /dev/null and b/src/assets/flag-spacer.xcf differ
diff --git a/src/assets/spain-flag.png b/src/assets/spain-flag.png
new file mode 100644
index 0000000..60ba170
Binary files /dev/null and b/src/assets/spain-flag.png differ
diff --git a/src/assets/spain.png b/src/assets/spain.png
new file mode 100644
index 0000000..8488a07
Binary files /dev/null and b/src/assets/spain.png differ
diff --git a/src/assets/united-states.png b/src/assets/united-states.png
new file mode 100644
index 0000000..1f8c87e
Binary files /dev/null and b/src/assets/united-states.png differ
diff --git a/src/assets/zgo-language-flags.xcf b/src/assets/zgo-language-flags.xcf
new file mode 100644
index 0000000..7b6c5c6
Binary files /dev/null and b/src/assets/zgo-language-flags.xcf differ
diff --git a/src/assets/zgo-spain-flag-default.png b/src/assets/zgo-spain-flag-default.png
new file mode 100644
index 0000000..d3bc81b
Binary files /dev/null and b/src/assets/zgo-spain-flag-default.png differ
diff --git a/src/assets/zgo-spain-flag.png b/src/assets/zgo-spain-flag.png
new file mode 100644
index 0000000..2ead00b
Binary files /dev/null and b/src/assets/zgo-spain-flag.png differ
diff --git a/src/assets/zgo-usa-flag-default.png b/src/assets/zgo-usa-flag-default.png
new file mode 100644
index 0000000..7dce0f3
Binary files /dev/null and b/src/assets/zgo-usa-flag-default.png differ
diff --git a/src/assets/zgo-usa-flag.png b/src/assets/zgo-usa-flag.png
new file mode 100644
index 0000000..3596eb6
Binary files /dev/null and b/src/assets/zgo-usa-flag.png differ