From bacac0c93da361da16cccc248cda02270328d6c7 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 9 Feb 2023 17:02:01 +0100 Subject: [PATCH] add locales --- frontend/src/components/SessionLogoutTimeout.vue | 4 ++-- frontend/src/locales/de.json | 3 ++- frontend/src/locales/en.json | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/SessionLogoutTimeout.vue b/frontend/src/components/SessionLogoutTimeout.vue index a41da851e..7a11d1d83 100644 --- a/frontend/src/components/SessionLogoutTimeout.vue +++ b/frontend/src/components/SessionLogoutTimeout.vue @@ -67,7 +67,7 @@ export default { } if (this.tokenExpiresInSeconds === 0) { this.$timer.stop('tokenExpires') - this.toastInfoNoHide('Du wurdest automatisch abgemeldet') + this.toastInfoNoHide(this.$t('session.automaticallyLoggedOut')) this.$emit('logout') } }, @@ -85,7 +85,7 @@ export default { }) .catch(() => { this.$timer.stop('tokenExpires') - this.toastInfoNoHide('Du wurdest automatisch abgemeldet') + this.toastInfoNoHide(this.$t('session.automaticallyLoggedOut')) this.$emit('logout') }) }, diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index eff4237ca..4563db397 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -275,7 +275,8 @@ "extend": "Angemeldet bleiben", "lightText": "Wenn du länger als 10 Minuten keine Aktion getätigt hast, wirst du aus Sicherheitsgründen abgemeldet.", "logoutIn": "Abmelden in ", - "warningText": "Bist du noch da?" + "warningText": "Bist du noch da?", + "automaticallyLoggedOut":"Du wurdest automatisch abgemeldet" }, "settings": { "hideAmountGDD": "Dein GDD Betrag ist versteckt.", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 068282891..50a8e45a1 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -275,7 +275,8 @@ "extend": "Stay logged in", "lightText": "If you have not performed any action for more than 10 minutes, you will be logged out for security reasons.", "logoutIn": "Log out in ", - "warningText": "Are you still there?" + "warningText": "Are you still there?", + "automaticallyLoggedOut":"You have been automatically logged out." }, "settings": { "hideAmountGDD": "Your GDD amount is hidden.",