aboutsummaryrefslogtreecommitdiff
path: root/src/i18n
diff options
context:
space:
mode:
authorraeno <just.raeno@gmail.com>2018-12-05 19:17:29 +0400
committerraeno <just.raeno@gmail.com>2018-12-05 19:17:29 +0400
commitf9ff839b1af7cdae2bc9ff5090844ea6b1fac6ac (patch)
tree18c1965fb949f08ee349a22a117db411ac4d24e3 /src/i18n
parent2b903f790d2517b1bfcb31d4b9e784757f0c28f5 (diff)
Better styling for client-side validation. Add I18n for validation errors.
Diffstat (limited to 'src/i18n')
-rw-r--r--src/i18n/en.json10
-rw-r--r--src/i18n/ru.json10
2 files changed, 18 insertions, 2 deletions
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": "Прикреплённые файлы",