mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Fix dynamic translate parameter (#1772)
This commit is contained in:
parent
36c76bf10c
commit
cbd827ab51
@ -50,7 +50,7 @@ export class LoginDemoComponent implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.alfrescologin.addCustomValidationError('username', 'required', 'LOGIN.MESSAGES.USERNAME-REQUIRED');
|
||||
this.alfrescologin.addCustomValidationError('username', 'minlength', 'LOGIN.MESSAGES.USERNAME-MIN', {customMinLenght: this.customMinLenght});
|
||||
this.alfrescologin.addCustomValidationError('username', 'minlength', 'LOGIN.MESSAGES.USERNAME-MIN', {minLenght: this.customMinLenght});
|
||||
this.alfrescologin.addCustomValidationError('password', 'required', 'LOGIN.MESSAGES.PASSWORD-REQUIRED');
|
||||
|
||||
if (this.storage.hasItem('providers')) {
|
||||
|
@ -8,7 +8,7 @@
|
||||
},
|
||||
"MESSAGES": {
|
||||
"USERNAME-REQUIRED": "Campo obbligatorio",
|
||||
"USERNAME-MIN": "Inserire un nome utente di minimo 4 caratteri.",
|
||||
"USERNAME-MIN": "Inserire un nome utente di minimo {{minLenght}} caratteri.",
|
||||
"PASSWORD-REQUIRED": "Campo obbligatorio",
|
||||
"LOGIN-ERROR-CREDENTIALS": "Nome utente o password non validi",
|
||||
"LOGIN-ERROR-PROVIDERS": "Providers non può essere nullo",
|
||||
|
@ -9,7 +9,7 @@
|
||||
},
|
||||
"MESSAGES": {
|
||||
"USERNAME-REQUIRED": "Обязательное поле",
|
||||
"USERNAME-MIN": "Имя пользователя должно быть не меньше {{customMinLenght}} символов.",
|
||||
"USERNAME-MIN": "Имя пользователя должно быть не меньше {{minLenght}} символов.",
|
||||
"PASSWORD-REQUIRED": "Введите пароль для входа",
|
||||
"LOGIN-ERROR-CREDENTIALS": "Не правильный логин или пароль",
|
||||
"LOGIN-ERROR-PROVIDERS": "Ошибка при авторизации",
|
||||
|
Loading…
x
Reference in New Issue
Block a user