Added translations for modal.

This commit is contained in:
Grzegorz Leoniec 2019-01-11 15:24:31 +01:00
parent b2ab7e4301
commit 00e61e5978
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
3 changed files with 29 additions and 3 deletions

View File

@ -2,8 +2,8 @@
<ds-modal
:title="title"
:is-open="isOpen"
cancel-label="Cancel"
confirm-label="Send Report"
:confirm-label="$t('report.submit')"
:cancel-label="$t('report.cancel')"
@close="close"
>
<p>Are you sure that you want to report the {{ data.context }} "<b>{{ data.name | truncate(30) }}</b>"?</p>
@ -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'

View File

@ -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.",

View File

@ -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.",