add locales in TransactionLink.vue

This commit is contained in:
ogerly 2022-03-16 11:24:16 +01:00
parent b976e84411
commit 798a75e923
4 changed files with 20 additions and 5 deletions

View File

@ -20,7 +20,7 @@
<b-button
v-if="!value.pending && value.itemsShown < transactionLinkCount"
block
variant="primary"
variant="outline-primary"
@click="loadMoreLinks"
>
{{ buttonText }}

View File

@ -6,8 +6,17 @@
<b-col cols="4">{{ item.memo }}</b-col>
<b-col cols="2">{{ $moment(item.validUntil).fromNow() }}</b-col>
<b-col cols="2">
<b-button size="sm" variant="primary" @click="copy">kopieren</b-button>
<b-button size="sm" variant="danger" @click="deleteLink(item.id)">löschen</b-button>
<b-button class="mr-2" size="sm" variant="outline-primary" @click="copy">
{{ $t('gdd_per_link.copy') }}
</b-button>
<b-button
size="sm"
variant="outline-danger"
@click="deleteLink(item.id)"
:title="$t('delete')"
>
<b-icon icon="trash"></b-icon>
</b-button>
</b-col>
</b-row>
</div>
@ -33,7 +42,7 @@ export default {
})
},
deleteLink(id) {
this.$bvModal.msgBoxConfirm('Den Link löschen?').then(async (value) => {
this.$bvModal.msgBoxConfirm(this.$t('gdd_per_link.delete-the-link')).then(async (value) => {
if (value)
await this.$apollo
.mutate({
@ -43,7 +52,7 @@ export default {
},
})
.then((result) => {
this.toastSuccess('Link gelöscht')
this.toastSuccess(this.$t('gdd_per_link.deleted'))
this.$emit('reset-transaction-link-list')
})
.catch((err) => {

View File

@ -46,6 +46,7 @@
"total": "Gesamt",
"year": "Jahre"
},
"delete":"löschen",
"error": {
"change-password": "Fehler beim Ändern des Passworts",
"empty-transactionlist": "Es gab einen Fehler mit der Übermittlung der Anzahl deiner Transaktionen.",
@ -103,6 +104,8 @@
"gdd_per_link": {
"copy": "kopieren",
"created": "Der Link wurde erstellt!",
"delete-the-link":"Den Link löschen?",
"deleted":"Der Link wurde gelöscht!",
"decay-14-day": "Vergänglichkeit für 14 Tage",
"header": "Gradidos versenden per Link",
"link-copied": "Link wurde in die Zwischenablage kopiert",

View File

@ -46,6 +46,7 @@
"total": "Total",
"year": "Years"
},
"delete":"delete",
"error": {
"change-password": "Error while changing password",
"empty-transactionlist": "There was an error with the transmission of the number of your transactions.",
@ -104,6 +105,8 @@
"copy": "copy",
"created": "Link was created!",
"decay-14-day": "Decay for 14 days",
"deleted":"The link was deleted!",
"delete-the-link":"Delete the link?",
"header": "Send Gradidos via link",
"link-copied": "Link copied to clipboard",
"links_count": "Active links",