Make login failure translateable, translate 'login.failure' to german and english

This commit is contained in:
Youri Seichter 2019-10-16 17:06:44 +02:00
parent 72bbadd852
commit b72f3da489
3 changed files with 5 additions and 3 deletions

View File

@ -98,7 +98,7 @@ export default {
this.$toast.success(this.$t('login.success')) this.$toast.success(this.$t('login.success'))
this.$emit('success') this.$emit('success')
} catch (err) { } catch (err) {
this.$toast.error(err.message) this.$toast.error(this.$t('login.failure'))
} }
}, },
}, },

View File

@ -112,7 +112,8 @@
"moreInfoURL": "https://human-connection.org", "moreInfoURL": "https://human-connection.org",
"moreInfoHint": "zur Präsentationsseite", "moreInfoHint": "zur Präsentationsseite",
"hello": "Hallo", "hello": "Hallo",
"success": "Du bist eingeloggt!" "success": "Du bist eingeloggt!",
"failure": "Login fehlgeschlagen"
}, },
"editor": { "editor": {
"placeholder": "Schreib etwas Inspirierendes …", "placeholder": "Schreib etwas Inspirierendes …",

View File

@ -113,7 +113,8 @@
"moreInfoURL": "https://human-connection.org/en/", "moreInfoURL": "https://human-connection.org/en/",
"moreInfoHint": "to the presentation page", "moreInfoHint": "to the presentation page",
"hello": "Hello", "hello": "Hello",
"success": "You are logged in!" "success": "You are logged in!",
"failure": "Login failed"
}, },
"editor": { "editor": {
"placeholder": "Leave your inspirational thoughts …", "placeholder": "Leave your inspirational thoughts …",