diff --git a/demo-shell-ng2/app/components/login/login-demo.component.ts b/demo-shell-ng2/app/components/login/login-demo.component.ts index 2026b9044e..0cd4d95941 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.ts +++ b/demo-shell-ng2/app/components/login/login-demo.component.ts @@ -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')) { diff --git a/ng2-components/ng2-alfresco-login/src/i18n/it.json b/ng2-components/ng2-alfresco-login/src/i18n/it.json index 44856a3682..6f730e450c 100644 --- a/ng2-components/ng2-alfresco-login/src/i18n/it.json +++ b/ng2-components/ng2-alfresco-login/src/i18n/it.json @@ -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", diff --git a/ng2-components/ng2-alfresco-login/src/i18n/ru.json b/ng2-components/ng2-alfresco-login/src/i18n/ru.json index 29a02225ac..837e337abc 100644 --- a/ng2-components/ng2-alfresco-login/src/i18n/ru.json +++ b/ng2-components/ng2-alfresco-login/src/i18n/ru.json @@ -9,7 +9,7 @@ }, "MESSAGES": { "USERNAME-REQUIRED": "Обязательное поле", - "USERNAME-MIN": "Имя пользователя должно быть не меньше {{customMinLenght}} символов.", + "USERNAME-MIN": "Имя пользователя должно быть не меньше {{minLenght}} символов.", "PASSWORD-REQUIRED": "Введите пароль для входа", "LOGIN-ERROR-CREDENTIALS": "Не правильный логин или пароль", "LOGIN-ERROR-PROVIDERS": "Ошибка при авторизации",