added translate
This commit is contained in:
parent
4786771a68
commit
97fa4b32c2
4 changed files with 30 additions and 6 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
onsubmit="return false"
|
onsubmit="return false"
|
||||||
>
|
>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>Log in</p>
|
<p>{{ "login.login" | translate }}</p>
|
||||||
<img src="./../../../assets/img/login/blue-line.svg" alt="" />
|
<img src="./../../../assets/img/login/blue-line.svg" alt="" />
|
||||||
<div class="input-fields">
|
<div class="input-fields">
|
||||||
<input
|
<input
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
id="mail"
|
id="mail"
|
||||||
name="mail"
|
name="mail"
|
||||||
#mail="ngModel"
|
#mail="ngModel"
|
||||||
placeholder="Email"
|
placeholder="{{ 'login.email' | translate }}"
|
||||||
class="custom-input"
|
class="custom-input"
|
||||||
autocomplete="email"
|
autocomplete="email"
|
||||||
[(ngModel)]="loginData.mail"
|
[(ngModel)]="loginData.mail"
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
name="password"
|
name="password"
|
||||||
#password="ngModel"
|
#password="ngModel"
|
||||||
[type]="loginSerivce.passwordFieldType"
|
[type]="loginSerivce.passwordFieldType"
|
||||||
placeholder="Password"
|
placeholder="{{ 'login.password' | translate }}"
|
||||||
class="custom-input"
|
class="custom-input"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
[(ngModel)]="loginData.password"
|
[(ngModel)]="loginData.password"
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
<app-form-btn
|
<app-form-btn
|
||||||
[class]="'btn-google'"
|
[class]="'btn-google'"
|
||||||
[type]="'button'"
|
[type]="'button'"
|
||||||
[value]="'Sign in with Google'"
|
[value]="'login.google' | translate"
|
||||||
[disabled]="sharedService.isBtnDisabled"
|
[disabled]="sharedService.isBtnDisabled"
|
||||||
(click)="googleLogin()"
|
(click)="googleLogin()"
|
||||||
></app-form-btn>
|
></app-form-btn>
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
<app-form-btn
|
<app-form-btn
|
||||||
[class]="'btn-login'"
|
[class]="'btn-login'"
|
||||||
[type]="'submit'"
|
[type]="'submit'"
|
||||||
[value]="'Log in'"
|
[value]="'login.login' | translate"
|
||||||
[disabled]="
|
[disabled]="
|
||||||
mail.invalid ||
|
mail.invalid ||
|
||||||
!loginData.mail ||
|
!loginData.mail ||
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
<app-form-btn
|
<app-form-btn
|
||||||
[class]="'btn-guest-login'"
|
[class]="'btn-guest-login'"
|
||||||
[type]="'button'"
|
[type]="'button'"
|
||||||
[value]="'Guest Log in'"
|
[value]="'login.guest' | translate"
|
||||||
[disabled]="sharedService.isBtnDisabled"
|
[disabled]="sharedService.isBtnDisabled"
|
||||||
(click)="guestLogin()"
|
(click)="guestLogin()"
|
||||||
></app-form-btn>
|
></app-form-btn>
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import { LoginService } from '../../services/login.service';
|
||||||
import { SharedService } from '../../services/shared.service';
|
import { SharedService } from '../../services/shared.service';
|
||||||
import { FooterComponent } from './footer/footer.component';
|
import { FooterComponent } from './footer/footer.component';
|
||||||
import { HeaderComponent } from './header/header.component';
|
import { HeaderComponent } from './header/header.component';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-login',
|
selector: 'app-login',
|
||||||
|
|
@ -18,6 +19,7 @@ import { HeaderComponent } from './header/header.component';
|
||||||
FormBtnComponent,
|
FormBtnComponent,
|
||||||
FooterComponent,
|
FooterComponent,
|
||||||
HeaderComponent,
|
HeaderComponent,
|
||||||
|
TranslateModule,
|
||||||
],
|
],
|
||||||
templateUrl: './login.component.html',
|
templateUrl: './login.component.html',
|
||||||
styleUrl: './login.component.scss',
|
styleUrl: './login.component.scss',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,15 @@
|
||||||
{
|
{
|
||||||
|
"login": {
|
||||||
|
"login": "Einloggen",
|
||||||
|
"email": "Email",
|
||||||
|
"password": "Passwort",
|
||||||
|
"google": "Einloggen mit Google",
|
||||||
|
"guest": "Gastzugang"
|
||||||
|
},
|
||||||
|
"loginHeader": {
|
||||||
|
"notAUser": "Kein Join Nutzer?",
|
||||||
|
"signup": "Registrieren"
|
||||||
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"headline": "Kanban Projektmanagement Werkzeug"
|
"headline": "Kanban Projektmanagement Werkzeug"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,15 @@
|
||||||
{
|
{
|
||||||
|
"login": {
|
||||||
|
"login": "Log in",
|
||||||
|
"email": "Email",
|
||||||
|
"password": "Password",
|
||||||
|
"google": "Sign in with Google",
|
||||||
|
"guest": "Guest Log in"
|
||||||
|
},
|
||||||
|
"loginHeader": {
|
||||||
|
"notAUser": "Not a Join user?",
|
||||||
|
"signup": "Sign up"
|
||||||
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"headline": "Kanban Project Management Tool"
|
"headline": "Kanban Project Management Tool"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue