Apprise status translation key

This commit is contained in:
zsxeee 2021-09-22 22:15:50 +08:00
parent 6e9d12638c
commit 624f632a7a
No known key found for this signature in database
GPG Key ID: 895CFFFD8313B3B8
3 changed files with 7 additions and 5 deletions

View File

@ -200,7 +200,7 @@ export default {
let name = "" let name = ""
do { do {
name = this.$t("defaultNotificationName", [ name = this.$t("defaultNotificationName", [
this.$t(notificationKey).replace(/\(.+\)/, ""), this.$t(notificationKey).replace(/\(.+\)/, "").trim(),
index++ index++
]); ]);
} while (this.$root.notificationList.find(it => it.name === name)) } while (this.$root.notificationList.find(it => it.name === name))

View File

@ -11,8 +11,10 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<i18n-t keypath="Status:" tag="p"> <i18n-t keypath="Status:" tag="p">
<span v-if="appriseInstalled" class="text-primary">{{ $t("Apprise is installed.") }}</span> <span v-if="appriseInstalled" class="text-primary">{{ $t("appriseInstalled") }}</span>
<span v-else class="text-danger">{{ $t("Apprise is not installed.") }}<a href="https://github.com/caronc/apprise" target="_blank">{{ $t("Read more") }}</a></span> <i18n-t v-else keypath="appriseNotInstalled" tag="span" class="text-danger">
<a href="https://github.com/caronc/apprise" target="_blank">{{ $t("Read more") }}</a>
</i18n-t>
</i18n-t> </i18n-t>
</div> </div>
</template> </template>

View File

@ -259,8 +259,8 @@ export default {
"Read more:": "Read more: {0}", "Read more:": "Read more: {0}",
"Status:": "Status: {0}", "Status:": "Status: {0}",
"Read more": "Read more", "Read more": "Read more",
"Apprise is installed.": "Apprise is installed. ", appriseInstalled: "Apprise is installed.",
"Apprise is not installed.": "Apprise is not installed. ", appriseNotInstalled: "Apprise is not installed. {0}",
"pushbullet": "Pushbullet", "pushbullet": "Pushbullet",
"Access Token": "Access Token", "Access Token": "Access Token",