Skip to content

Commit

Permalink
Merge pull request #26 from heshanu/minorChangesInLogini18n
Browse files Browse the repository at this point in the history
fixed minor changes
  • Loading branch information
heshanu authored Aug 12, 2024
2 parents f1afac7 + ef30187 commit 977036d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/app/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ <h2>{{'LOGIN'| translate}}</h2>
{{'LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG'|translate}}
</mat-error>
<mat-form-field>
<input matInput placeholder="Email" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}" [(ngModel)]="username" name="username" required>
<input matInput
placeholder="{{'EMAIL_FIELD_PLACEHOLDER'|translate}}" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}" [(ngModel)]="username" name="username" required>
<mat-error>
{{'EMAIL_ERROR'| translate}}
</mat-error>
</mat-form-field>
<mat-form-field>
<input matInput type="password" placeholder="Password" [(ngModel)]="password" name="password" required>
<input matInput type="password" placeholder="{{'PASSWORD_FIELD_PLACEHOLDER'| translate}}" [(ngModel)]="password" name="password" required>
<mat-error>
{{'PASSWORD_ERROR'|translate}}
</mat-error>
Expand Down
4 changes: 3 additions & 1 deletion src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"Der Benutzername und das Passwort wurden nicht erkannt",
"EMAIL_ERROR":"Bitte geben Sie eine gültige E-Mail-Adresse ans",
"PASSWORD_ERROR":"Bitte geben Sie ein gültiges Passwort ein",
"LOGIN_BTN":"LOGIN"
"LOGIN_BTN":"LOGIN",
"PASSWORD_FIELD_PLACEHOLDER":"Passwort hier",
"EMAIL_FIELD_PLACEHOLDER":"Hier per E-Mail senden"

}

4 changes: 3 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"The username and password were not recognized",
"EMAIL_ERROR":" Please provide a valid email address",
"PASSWORD_ERROR":"Please provide a valid password",
"LOGIN_BTN":"LOGIN"
"LOGIN_BTN":"LOGIN",
"PASSWORD_FIELD_PLACEHOLDER":"Password Here",
"EMAIL_FIELD_PLACEHOLDER":"Email Here"
}

4 changes: 3 additions & 1 deletion src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"Имя пользователя и пароль не были распознаны",
"EMAIL_ERROR":"Пожалуйста, укажите действительный адрес электронной почты",
"PASSWORD_ERROR":"Пожалуйста, укажите действительный пароль",
"LOGIN_BTN":"Авторизоваться"
"LOGIN_BTN":"Авторизоваться",
"PASSWORD_FIELD_PLACEHOLDER":"Пароль здесь",
"EMAIL_FIELD_PLACEHOLDER":"Пишите сюда"
}

0 comments on commit 977036d

Please sign in to comment.