|
50 | 50 | </mat-tab> |
51 | 51 |
|
52 | 52 | <!--Sign in tab--> |
53 | | - <mat-tab label="Sign in"> |
| 53 | + <mat-tab [label]="signInTabText"> |
54 | 54 | <mat-card> |
55 | | - <mat-card-title>Signing in</mat-card-title> |
| 55 | + <mat-card-title>{{signInCardTitleText}}</mat-card-title> |
56 | 56 | <mat-card-content> |
57 | 57 | <form [formGroup]="signInFormGroup" |
58 | 58 | (ngSubmit)="signInFormGroup.valid && |
|
61 | 61 | {email:signInFormGroup.value.email, password: signInFormGroup.value.password})"> |
62 | 62 | <div fxLayout="column" fxLayoutAlign="center"> |
63 | 63 | <mat-form-field [appearance]="appearance"> |
64 | | - <mat-label>E-mail</mat-label> |
| 64 | + <mat-label>{{emailText}}</mat-label> |
65 | 65 | <input matInput |
66 | | - placeholder="E-mail" |
| 66 | + [placeholder]="emailText" |
67 | 67 | formControlName="email" |
68 | 68 | required> |
69 | 69 | <mat-icon matSuffix [color]="color">email</mat-icon> |
70 | 70 | <mat-error *ngIf="signInEmailFormControl.hasError('required')"> |
71 | | - E-mail is required |
| 71 | + {{emailErrorRequiredText}} |
72 | 72 | </mat-error> |
73 | 73 | <mat-error *ngIf="signInEmailFormControl.hasError('pattern')"> |
74 | | - Please enter a valid e-mail address |
| 74 | + {{emailErrorPatternText}} |
75 | 75 | </mat-error> |
76 | 76 | </mat-form-field> |
77 | 77 |
|
78 | 78 | <mat-form-field [appearance]="appearance"> |
79 | | - <mat-label>Password</mat-label> |
| 79 | + <mat-label>{{passwordText}}</mat-label> |
80 | 80 | <input matInput |
81 | 81 | type="password" |
82 | | - placeholder="Password" |
| 82 | + [placeholder]="passwordText" |
83 | 83 | minlength="6" |
84 | 84 | maxlength="25" |
85 | 85 | formControlName="password" |
|
89 | 89 | {{signInFormGroup.value.password.length}} / 25 |
90 | 90 | </mat-hint> |
91 | 91 | <mat-error *ngIf="sigInPasswordFormControl.hasError('required')"> |
92 | | - Please do not forget the password |
| 92 | + {{passwordErrorRequiredText}} |
93 | 93 | </mat-error> |
94 | 94 | <mat-error *ngIf="sigInPasswordFormControl.hasError('minlength')"> |
95 | 95 | The password must be at least 6 characters long. |
|
104 | 104 | type="submit" |
105 | 105 | class="space-top" |
106 | 106 | [color]="color"> |
107 | | - Log In |
| 107 | + {{loginButtonText}} |
108 | 108 | </button> |
109 | 109 |
|
110 | 110 | </div> |
|
116 | 116 | class="space-top" |
117 | 117 | [color]="color" |
118 | 118 | (click)="createForgotPasswordTab()"> |
119 | | - Forgot Password? |
| 119 | + {{forgotPasswordButtonText}} |
120 | 120 | </button> |
121 | 121 | </div> |
122 | 122 |
|
|
128 | 128 | </mat-tab> |
129 | 129 |
|
130 | 130 | <!--tab register--> |
131 | | - <mat-tab label="Register" *ngIf="registrationEnabled"> |
| 131 | + <mat-tab [label]="registerTabText" *ngIf="registrationEnabled"> |
132 | 132 | <mat-card> |
133 | | - <mat-card-title>Registration</mat-card-title> |
| 133 | + <mat-card-title>{{registerCardTitleText}}</mat-card-title> |
134 | 134 | <div *ngIf="!authProcess.emailConfirmationSent;then register else confirm"></div> |
135 | 135 | <ng-template #register> |
136 | 136 | <mat-card-content fxLayout="column" fxLayoutAlign="center"> |
|
140 | 140 | <!--name--> |
141 | 141 | <mat-form-field [appearance]="appearance"> |
142 | 142 | <!--labels will work only with @angular/material@6.2.0 --> |
143 | | - <mat-label>Name</mat-label> |
| 143 | + <mat-label>{{nameText}}</mat-label> |
144 | 144 | <input matInput |
145 | | - placeholder="Name" |
| 145 | + [placeholder]="Name" |
146 | 146 | minlength="2" |
147 | 147 | maxlength="30" |
148 | 148 | [formControl]="sigUpNameFormControl" |
|
152 | 152 | {{signUpFormGroup.value.name?.length}} / 25 |
153 | 153 | </mat-hint> |
154 | 154 | <mat-error *ngIf="sigUpNameFormControl.hasError('required')"> |
155 | | - Name is required |
| 155 | + {{nameErrorRequiredText}} |
156 | 156 | </mat-error> |
157 | 157 | <mat-error *ngIf="sigUpNameFormControl.hasError('minlength')"> |
158 | | - The name is too short! |
| 158 | + {{nameErrorMinLengthText}} |
159 | 159 | </mat-error> |
160 | 160 | <mat-error *ngIf="sigUpNameFormControl.hasError('maxlength')"> |
161 | | - The name is too long! |
| 161 | + {{nameErrorMaxLengthText}} |
162 | 162 | </mat-error> |
163 | 163 | </mat-form-field> |
164 | 164 |
|
165 | 165 | <!--email--> |
166 | 166 | <mat-form-field [appearance]="appearance"> |
167 | | - <mat-label>E-mail</mat-label> |
| 167 | + <mat-label>{{emailText}}</mat-label> |
168 | 168 | <input matInput |
169 | | - placeholder="E-mail" |
| 169 | + [placeholder]="emailText" |
170 | 170 | type="email" |
171 | 171 | [formControl]="sigUpEmailFormControl"> |
172 | 172 | <mat-icon matSuffix [color]="color">email</mat-icon> |
173 | 173 | <mat-error *ngIf="sigUpEmailFormControl.hasError('required')"> |
174 | | - E-mail is required |
| 174 | + {{emailErrorRequiredText}} |
175 | 175 | </mat-error> |
176 | 176 | <mat-error *ngIf="sigUpEmailFormControl.hasError('pattern')"> |
177 | | - Please enter a valid e-mail address |
| 177 | + {{emailErrorPatternText}} |
178 | 178 | </mat-error> |
179 | 179 | </mat-form-field> |
180 | 180 |
|
181 | 181 | <!--password--> |
182 | 182 | <div fxLayout="column"> |
183 | | - |
184 | 183 | <mat-form-field [appearance]="appearance"> |
185 | | - <mat-label>Password</mat-label> |
| 184 | + <mat-label>{{passwordText}}</mat-label> |
186 | 185 | <input matInput |
187 | 186 | [type]="toggle.type" |
188 | | - placeholder="password" |
| 187 | + [placeholder]="passwordText" |
189 | 188 | name="password" |
190 | 189 | [formControl]="sigUpPasswordFormControl" |
191 | 190 | required> |
|
198 | 197 | </mat-hint> |
199 | 198 |
|
200 | 199 | <mat-error *ngIf="sigUpPasswordFormControl.hasError('required')" class="cut-text"> |
201 | | - Please do not forget the password |
| 200 | + {{passwordErrorRequiredText}} |
202 | 201 | </mat-error> |
203 | 202 |
|
204 | 203 | <mat-error *ngIf="sigUpPasswordFormControl.hasError('minlength')" class="cut-text"> |
|
221 | 220 | style="margin-top: 20px" |
222 | 221 | type="submit" |
223 | 222 | [color]="color"> |
224 | | - Register |
| 223 | + {{registerButtonText}} |
225 | 224 | </button> |
226 | 225 |
|
227 | 226 | </div> |
|
233 | 232 | [color]="color" |
234 | 233 | (click)="processLegalSignUP(authProvider.ANONYMOUS)"> |
235 | 234 | <mat-icon>fingerprint</mat-icon> |
236 | | - continue as guest |
| 235 | + {{guestButtonText}} |
237 | 236 | </button> |
238 | 237 |
|
239 | 238 | </mat-card-content> |
|
0 commit comments