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 = ""
do {
name = this.$t("defaultNotificationName", [
this.$t(notificationKey).replace(/\(.+\)/, ""),
this.$t(notificationKey).replace(/\(.+\)/, "").trim(),
index++
]);
} while (this.$root.notificationList.find(it => it.name === name))

View file

@ -11,8 +11,10 @@
</div>
<div class="mb-3">
<i18n-t keypath="Status:" tag="p">
<span v-if="appriseInstalled" class="text-primary">{{ $t("Apprise is installed.") }}</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>
<span v-if="appriseInstalled" class="text-primary">{{ $t("appriseInstalled") }}</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>
</div>
</template>

View file

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