From 5272afb8aff395dfe45f3e3f50f1e090cfb0ad43 Mon Sep 17 00:00:00 2001 From: heshanu Date: Mon, 12 Aug 2024 17:57:51 +0530 Subject: [PATCH 1/2] email field i18n implmented --- src/app/login/login.component.html | 4 ++-- src/assets/i18n/de.json | 5 ++++- src/assets/i18n/en.json | 7 +++++-- src/assets/i18n/ru.json | 6 ++++-- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 580312b..d1ec5b2 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -4,12 +4,12 @@

{{'LOGIN'| translate}}

- The username and password were not recognized + {{'LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG'|translate}} - Please provide a valid email address + {{'EMAIL_ERROR'| translate}} diff --git a/src/assets/i18n/de.json b/src/assets/i18n/de.json index 617fef4..68d620b 100644 --- a/src/assets/i18n/de.json +++ b/src/assets/i18n/de.json @@ -1,5 +1,8 @@ { "HELLO_WORLD": "Hallo, Welt!", - "LOGIN":"LOGIN" + "LOGIN":"LOGIN", + "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" + } \ No newline at end of file diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 6a2357d..af7da84 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1,5 +1,8 @@ { "HELLO_WORLD": "Hello, World!", - "LOGIN":"LOGIN" - } + "LOGIN":"LOGIN", + "LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"The username and password were not recognized", + "EMAIL_ERROR":" Please provide a valid email address" + +} \ No newline at end of file diff --git a/src/assets/i18n/ru.json b/src/assets/i18n/ru.json index 643d586..02e66e9 100644 --- a/src/assets/i18n/ru.json +++ b/src/assets/i18n/ru.json @@ -1,5 +1,7 @@ { "HELLO_WORLD": "Привет, мир!", - "LOGIN":"Авторизоваться" - } + "LOGIN":"Авторизоваться", + "LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"Имя пользователя и пароль не были распознаны", + "EMAIL_ERROR":"Пожалуйста, укажите действительный адрес электронной почты" +} \ No newline at end of file From 9b9dc38c0f106319d8250136885d015fbe9ad0b2 Mon Sep 17 00:00:00 2001 From: heshanu Date: Mon, 12 Aug 2024 18:06:18 +0530 Subject: [PATCH 2/2] implmented i18n for all loginpage --- src/app/login/login.component.html | 5 +++-- src/assets/i18n/de.json | 6 ++++-- src/assets/i18n/en.json | 6 ++++-- src/assets/i18n/ru.json | 6 ++++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index d1ec5b2..1ce3374 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -15,10 +15,11 @@

{{'LOGIN'| translate}}

- Please provide a valid password + {{'PASSWORD_ERROR'|translate}} - + \ No newline at end of file diff --git a/src/assets/i18n/de.json b/src/assets/i18n/de.json index 68d620b..2572ea2 100644 --- a/src/assets/i18n/de.json +++ b/src/assets/i18n/de.json @@ -2,7 +2,9 @@ "HELLO_WORLD": "Hallo, Welt!", "LOGIN":"LOGIN", "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" - + "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" + } \ No newline at end of file diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index af7da84..72de92d 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1,8 +1,10 @@ { + "HELLO_WORLD": "Hello, World!", "LOGIN":"LOGIN", "LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"The username and password were not recognized", - "EMAIL_ERROR":" Please provide a valid email address" - + "EMAIL_ERROR":" Please provide a valid email address", + "PASSWORD_ERROR":"Please provide a valid password", + "LOGIN_BTN":"LOGIN" } \ No newline at end of file diff --git a/src/assets/i18n/ru.json b/src/assets/i18n/ru.json index 02e66e9..7b70b40 100644 --- a/src/assets/i18n/ru.json +++ b/src/assets/i18n/ru.json @@ -2,6 +2,8 @@ "HELLO_WORLD": "Привет, мир!", "LOGIN":"Авторизоваться", "LOGIN_FORM_LOGIN_ALL_CREDINTIAL_WRONG":"Имя пользователя и пароль не были распознаны", - "EMAIL_ERROR":"Пожалуйста, укажите действительный адрес электронной почты" -} + "EMAIL_ERROR":"Пожалуйста, укажите действительный адрес электронной почты", + "PASSWORD_ERROR":"Пожалуйста, укажите действительный пароль", + "LOGIN_BTN":"Авторизоваться" + } \ No newline at end of file