Skip to content
Snippets Groups Projects
Commit f1ee0147 authored by Diego Rey's avatar Diego Rey
Browse files

Add translations language for login component

parent 071cce00
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,11 @@
<form role="form">
<div class="form-content">
<div class="form-group">
<input type="text" [(ngModel)]=model.cedula name="cedula" class="form-control input-underline input-lg" placeholder='{{ "login.user" | translate }}'>
<input type="text" [(ngModel)]=model.cedula name="cedula" class="form-control input-underline input-lg" placeholder='{{ "i18n.object.user" | translate | titleCase }}'>
</div>
<div class="form-group">
<input type="password" [(ngModel)]=model.password (keyup.enter)=login() name="password" class="form-control input-underline input-lg" placeholder='{{ "login.password" | translate }}'>
<input type="password" [(ngModel)]=model.password (keyup.enter)=login() name="password" class="form-control input-underline input-lg" placeholder='{{ "i18n.object.password" | translate | titleCase }}'>
</div>
<div class="form-group" style="margin-bottom: 0px; text-align: left;">
<div ngbDropdown class="d-inline-block language-switcher">
......@@ -31,8 +31,8 @@
</div>
</div>
<a class="btn rounded-btn" style="background: transparent;color: white;cursor: pointer;width: 159px;margin-right: 3px;" (click)=login()> {{ "login.login" | translate }} </a>
<a class="btn rounded-btn" style="background: transparent;color: white;cursor: pointer;width: 159px;margin-left: 3px;" (click)=invitado()> {{ "login.guest" | translate }} </a>
<a class="btn rounded-btn" style="background: transparent;color: white;cursor: pointer;width: 159px;margin-right: 3px;" (click)=login()> {{ "i18n.action.login" | translate | titleCase }} </a>
<a class="btn rounded-btn" style="background: transparent;color: white;cursor: pointer;width: 159px;margin-left: 3px;" (click)=invitado()> {{ "i18n.object.guest" | translate | titleCase }} </a>
&nbsp;
<div class="loading" *ngIf="loading">
<div class="loading-bar"></div>
......
......@@ -8,7 +8,7 @@ import { LoginComponent } from './login.component';
import { FormsModule } from '@angular/forms';
import { AuthenticationService } from '../shared/services/authentication.service';
import { I18nModule } from '../shared/modules/translate/i18n.module';
import { TitleCaseModule } from '../shared/modules/titlecase.module';
@NgModule({
imports: [
......@@ -16,6 +16,7 @@ import { I18nModule } from '../shared/modules/translate/i18n.module';
CommonModule,
LoginRoutingModule,
I18nModule,
TitleCaseModule,
NgbModule.forRoot(),
],
declarations: [LoginComponent],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment