From f9ff839b1af7cdae2bc9ff5090844ea6b1fac6ac Mon Sep 17 00:00:00 2001 From: raeno Date: Wed, 5 Dec 2018 19:17:29 +0400 Subject: Better styling for client-side validation. Add I18n for validation errors. --- src/i18n/en.json | 10 +++++++++- src/i18n/ru.json | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'src/i18n') diff --git a/src/i18n/en.json b/src/i18n/en.json index 8fd546ef..6e13993f 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -72,7 +72,15 @@ "fullname": "Display name", "password_confirm": "Password confirmation", "registration": "Registration", - "token": "Invite token" + "token": "Invite token", + "validations": { + "username_required": "username should not be blank", + "email_required": "should not be blank", + "email_valid": "should be valid email", + "password_required": "should not be blank", + "password_confirmation_required": "should not be blank", + "password_confirmation_match": "should be the same as password" + } }, "settings": { "attachmentRadius": "Attachments", diff --git a/src/i18n/ru.json b/src/i18n/ru.json index 9c28ccf4..de2774ef 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -55,7 +55,15 @@ "fullname": "Отображаемое имя", "password_confirm": "Подтверждение пароля", "registration": "Регистрация", - "token": "Код приглашения" + "token": "Код приглашения", + "validations": { + "username_required": "не должно быть пустым", + "email_required": "не должен быть пустым", + "email_valid": "должен быть корректный email адрес", + "password_required": "не должен быть пустым", + "password_confirmation_required": "не должно быть пустым", + "password_confirmation_match": "должно совпадать с паролем" + } }, "settings": { "attachmentRadius": "Прикреплённые файлы", -- cgit v1.2.3-70-g09d2