Put validation error translations together

This commit is contained in:
Robert Schäfer 2019-06-18 12:09:06 +02:00
parent 21506335b5
commit 8fc74b9e14
4 changed files with 8 additions and 12 deletions

View File

@ -63,7 +63,7 @@ export default {
email: { email: {
type: 'email', type: 'email',
required: true, required: true,
message: this.$t('password-reset.form.validations.email'), message: this.$t('common.validations.email'),
}, },
}, },
disabled: true, disabled: true,

View File

@ -41,7 +41,7 @@ export default {
min: 6, min: 6,
max: 6, max: 6,
required: true, required: true,
message: this.$t('verify-code.form.validations.code'), message: this.$t('common.validations.verification-code'),
}, },
}, },
} }

View File

@ -26,10 +26,7 @@
"form": { "form": {
"input": "Code eingeben", "input": "Code eingeben",
"description": "Öffne Deine E-Mail Postfach und gib den Code ein, den wir geschickt haben.", "description": "Öffne Deine E-Mail Postfach und gib den Code ein, den wir geschickt haben.",
"submit": "Sicherheitscode überprüfen", "submit": "Sicherheitscode überprüfen"
"validations": {
"code": "muss genau 6 Buchstaben lang sein"
}
} }
}, },
"editor": { "editor": {
@ -214,7 +211,8 @@
"loading": "wird geladen", "loading": "wird geladen",
"reportContent": "Melden", "reportContent": "Melden",
"validations": { "validations": {
"email": "muss eine gültige E-Mail Adresse sein" "email": "muss eine gültige E-Mail Adresse sein",
"verification-code": "muss genau 6 Buchstaben lang sein"
} }
}, },
"actions": { "actions": {

View File

@ -26,10 +26,7 @@
"form": { "form": {
"input": "Enter your code", "input": "Enter your code",
"description": "Open your inbox and enter the code that we've sent to you.", "description": "Open your inbox and enter the code that we've sent to you.",
"submit": "Check security code", "submit": "Check security code"
"validations": {
"code": "must be 6 characters long"
}
} }
}, },
"editor": { "editor": {
@ -214,7 +211,8 @@
"loading": "loading", "loading": "loading",
"reportContent": "Report", "reportContent": "Report",
"validations": { "validations": {
"email": "must be a valid email address" "email": "must be a valid email address",
"verification-code": "must be 6 characters long"
} }
}, },
"actions": { "actions": {