From b72f3da489bc6d6913bfbf239a5abc2a2b4f83d1 Mon Sep 17 00:00:00 2001 From: Youri Seichter Date: Wed, 16 Oct 2019 17:06:44 +0200 Subject: [PATCH] Make login failure translateable, translate 'login.failure' to german and english --- webapp/components/LoginForm/LoginForm.vue | 2 +- webapp/locales/de.json | 3 ++- webapp/locales/en.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/components/LoginForm/LoginForm.vue b/webapp/components/LoginForm/LoginForm.vue index 0eb0d4be9..91693ed4b 100644 --- a/webapp/components/LoginForm/LoginForm.vue +++ b/webapp/components/LoginForm/LoginForm.vue @@ -98,7 +98,7 @@ export default { this.$toast.success(this.$t('login.success')) this.$emit('success') } catch (err) { - this.$toast.error(err.message) + this.$toast.error(this.$t('login.failure')) } }, }, diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 9ef19e486..57e33afec 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -112,7 +112,8 @@ "moreInfoURL": "https://human-connection.org", "moreInfoHint": "zur Präsentationsseite", "hello": "Hallo", - "success": "Du bist eingeloggt!" + "success": "Du bist eingeloggt!", + "failure": "Login fehlgeschlagen" }, "editor": { "placeholder": "Schreib etwas Inspirierendes …", diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 1a2ea643b..3c136b63a 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -113,7 +113,8 @@ "moreInfoURL": "https://human-connection.org/en/", "moreInfoHint": "to the presentation page", "hello": "Hello", - "success": "You are logged in!" + "success": "You are logged in!", + "failure": "Login failed" }, "editor": { "placeholder": "Leave your inspirational thoughts …",