Fix dynamic translate parameter (#1772)

This commit is contained in:
Maurizio Vitale 2017-03-27 14:32:18 +01:00 committed by Denys Vuika
parent 36c76bf10c
commit cbd827ab51
3 changed files with 3 additions and 3 deletions

View File

@ -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')) {

View File

@ -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",

View File

@ -9,7 +9,7 @@
},
"MESSAGES": {
"USERNAME-REQUIRED": "Обязательное поле",
"USERNAME-MIN": "Имя пользователя должно быть не меньше {{customMinLenght}} символов.",
"USERNAME-MIN": "Имя пользователя должно быть не меньше {{minLenght}} символов.",
"PASSWORD-REQUIRED": "Введите пароль для входа",
"LOGIN-ERROR-CREDENTIALS": "Не правильный логин или пароль",
"LOGIN-ERROR-PROVIDERS": "Ошибка при авторизации",