mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Added translations for modal.
This commit is contained in:
parent
b2ab7e4301
commit
00e61e5978
@ -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'
|
||||
|
||||
@ -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.",
|
||||
|
||||
@ -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.",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user