From 7349a9bdd1aaed82f499e52098b278d126ab1ecd Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 19 Jan 2023 15:24:54 +0100 Subject: [PATCH] add localation in toast --- frontend/src/locales/de.json | 3 ++- frontend/src/locales/en.json | 3 ++- frontend/src/pages/Community.vue | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index ce9f8b41d..d4f1544b9 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -37,7 +37,8 @@ "contribution": { "activity": "Tätigkeit", "alert": { - "answerQuestion": "Bitte beantworte die Rückfrage!", + "answerQuestionToast": "Du hast eine Rückfrage auf einen Beitrag. Bitte antworte auf diese.", + "answerQuestion": "Bitte beantworte diese Rückfrage.", "communityNoteList": "Hier findest du alle eingereichten und bestätigten Beiträge von allen Mitgliedern aus dieser Gemeinschaft.", "confirm": "bestätigt", "deleted": "gelöscht", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 5841c759c..d45502df1 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -37,7 +37,8 @@ "contribution": { "activity": "Activity", "alert": { - "answerQuestion": "Please answer the question", + "answerQuestionToast": "You have a question about a post. Please reply to it.", + "answerQuestion": "Please answer the question.", "communityNoteList": "Here you will find all submitted and confirmed contributions from all members of this community.", "confirm": "confirmed", "deleted": "deleted", diff --git a/frontend/src/pages/Community.vue b/frontend/src/pages/Community.vue index 13aad1a72..5e4186c21 100644 --- a/frontend/src/pages/Community.vue +++ b/frontend/src/pages/Community.vue @@ -282,7 +282,7 @@ export default { if (this.$route.hash !== '#my') { this.$router.push({ path: '/community#my' }) } - this.toastInfo('Du hast eine Rückfrage auf eine Contribution. Bitte beantworte diese!') + this.toastInfo(this.$t('contribution.alert.answerQuestionToast')) } }) .catch((err) => {