From 00e61e597834dfda928f4e2b4dfdd3f9bebf6a4c Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Fri, 11 Jan 2019 15:24:31 +0100 Subject: [PATCH] Added translations for modal. --- components/ReportModal.vue | 6 +++--- locales/de.json | 13 +++++++++++++ locales/en.json | 13 +++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/components/ReportModal.vue b/components/ReportModal.vue index e635839cc..8cc70731d 100644 --- a/components/ReportModal.vue +++ b/components/ReportModal.vue @@ -2,8 +2,8 @@

Are you sure that you want to report the {{ data.context }} "{{ data.name | truncate(30) }}"?

@@ -17,7 +17,7 @@ export default { return this.$store.getters['modal/data'] || {} }, title() { - return `Report ${this.data.context}` + return this.$t(`report.${this.data.context}.title`) }, isOpen() { return this.$store.getters['modal/open'] === 'report' diff --git a/locales/de.json b/locales/de.json index 12320e041..12cb611d1 100644 --- a/locales/de.json +++ b/locales/de.json @@ -90,6 +90,19 @@ "name": "Aktiv werden" } }, + "report": { + "submit": "Meldung senden", + "cancel": "Abbrechen", + "user": { + "title": "Nutzer melden" + }, + "contribution": { + "title": "Beitrag melden" + }, + "comment": { + "title": "Kommentar melden" + } + }, "quotes": { "african": { "quote": "Viele kleine Leute, an vielen kleinen Orten, die viele kleine Dinge tun, werden das Antlitz dieser Welt verändern.", diff --git a/locales/en.json b/locales/en.json index eaa37a9cd..87c48e550 100644 --- a/locales/en.json +++ b/locales/en.json @@ -90,6 +90,19 @@ "name": "Take action" } }, + "report": { + "submit": "Send Report", + "cancel": "Cancel", + "user": { + "title": "Report User" + }, + "contribution": { + "title": "Report Contribution" + }, + "comment": { + "title": "Report Comment" + } + }, "quotes": { "african": { "quote": "Many small people in many small places do many small things, that can alter the face of the world.",