mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 04:11:43 +00:00
Update: email strings
This commit is contained in:
parent
fc18643032
commit
02f06ccd68
2 changed files with 14 additions and 7 deletions
|
|
@ -109,7 +109,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div v-else-if="!loading" class="text-center py-4">
|
<div v-else-if="!loading" class="text-center py-4">
|
||||||
<p class="text-lg text-gray-100">No Devices</p>
|
<p class="text-lg text-gray-100">{{ $strings.MessageNoDevices }}</p>
|
||||||
</div>
|
</div>
|
||||||
</app-settings-content>
|
</app-settings-content>
|
||||||
|
|
||||||
|
|
@ -199,7 +199,7 @@ export default {
|
||||||
},
|
},
|
||||||
deleteDeviceClick(device) {
|
deleteDeviceClick(device) {
|
||||||
const payload = {
|
const payload = {
|
||||||
message: `Are you sure you want to delete e-reader device "${device.name}"?`,
|
message: this.$getString('MessageConfirmDeleteDevice', [device.name]),
|
||||||
callback: (confirmed) => {
|
callback: (confirmed) => {
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
this.deleteDevice(device)
|
this.deleteDevice(device)
|
||||||
|
|
@ -218,7 +218,7 @@ export default {
|
||||||
.$post(`/api/emails/ereader-devices`, payload)
|
.$post(`/api/emails/ereader-devices`, payload)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.ereaderDevicesUpdated(data.ereaderDevices)
|
this.ereaderDevicesUpdated(data.ereaderDevices)
|
||||||
this.$toast.success('Device deleted')
|
this.$toast.success(this.$strings.ToastDeviceDeleteSuccess)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to delete device', error)
|
console.error('Failed to delete device', error)
|
||||||
|
|
@ -246,11 +246,11 @@ export default {
|
||||||
this.$axios
|
this.$axios
|
||||||
.$post('/api/emails/test')
|
.$post('/api/emails/test')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.success('Test Email Sent')
|
this.$toast.success(this.$strings.ToastDeviceTestEmailSuccess)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to send test email', error)
|
console.error('Failed to send test email', error)
|
||||||
const errorMsg = error.response.data || 'Failed to send test email'
|
const errorMsg = error.response.data || this.$strings.ToastDeviceTestEmailFailed
|
||||||
this.$toast.error(errorMsg)
|
this.$toast.error(errorMsg)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
@ -289,11 +289,11 @@ export default {
|
||||||
this.newSettings = {
|
this.newSettings = {
|
||||||
...data.settings
|
...data.settings
|
||||||
}
|
}
|
||||||
this.$toast.success('Email settings updated')
|
this.$toast.success(this.$strings.ToastEmailSettingsUpdateSuccess)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to update email settings', error)
|
console.error('Failed to update email settings', error)
|
||||||
this.$toast.error('Failed to update email settings')
|
this.$toast.error(this.$strings.ToastEmailSettingsUpdateFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.savingSettings = false
|
this.savingSettings = false
|
||||||
|
|
|
||||||
|
|
@ -658,6 +658,7 @@
|
||||||
"MessageCheckingCron": "Checking cron...",
|
"MessageCheckingCron": "Checking cron...",
|
||||||
"MessageConfirmCloseFeed": "Are you sure you want to close this feed?",
|
"MessageConfirmCloseFeed": "Are you sure you want to close this feed?",
|
||||||
"MessageConfirmDeleteBackup": "Are you sure you want to delete backup for {0}?",
|
"MessageConfirmDeleteBackup": "Are you sure you want to delete backup for {0}?",
|
||||||
|
"MessageConfirmDeleteDevice": "Are you sure you want to delete e-reader device \"{0}\"?",
|
||||||
"MessageConfirmDeleteFile": "This will delete the file from your file system. Are you sure?",
|
"MessageConfirmDeleteFile": "This will delete the file from your file system. Are you sure?",
|
||||||
"MessageConfirmDeleteLibrary": "Are you sure you want to permanently delete library \"{0}\"?",
|
"MessageConfirmDeleteLibrary": "Are you sure you want to permanently delete library \"{0}\"?",
|
||||||
"MessageConfirmDeleteLibraryItem": "This will delete the library item from the database and your file system. Are you sure?",
|
"MessageConfirmDeleteLibraryItem": "This will delete the library item from the database and your file system. Are you sure?",
|
||||||
|
|
@ -727,6 +728,7 @@
|
||||||
"MessageNoCollections": "No Collections",
|
"MessageNoCollections": "No Collections",
|
||||||
"MessageNoCoversFound": "No Covers Found",
|
"MessageNoCoversFound": "No Covers Found",
|
||||||
"MessageNoDescription": "No description",
|
"MessageNoDescription": "No description",
|
||||||
|
"MessageNoDevices": "No devices",
|
||||||
"MessageNoDownloadsInProgress": "No downloads currently in progress",
|
"MessageNoDownloadsInProgress": "No downloads currently in progress",
|
||||||
"MessageNoDownloadsQueued": "No downloads queued",
|
"MessageNoDownloadsQueued": "No downloads queued",
|
||||||
"MessageNoEpisodeMatchesFound": "No episode matches found",
|
"MessageNoEpisodeMatchesFound": "No episode matches found",
|
||||||
|
|
@ -864,9 +866,14 @@
|
||||||
"ToastDeleteFileSuccess": "File deleted",
|
"ToastDeleteFileSuccess": "File deleted",
|
||||||
"ToastDeviceAddFailed": "Failed to add device",
|
"ToastDeviceAddFailed": "Failed to add device",
|
||||||
"ToastDeviceAddSuccess": "Device added",
|
"ToastDeviceAddSuccess": "Device added",
|
||||||
|
"ToastDeviceDeleteSuccess": "Device deleted",
|
||||||
"ToastDeviceNameAlreadyExists": "Ereader device with that name already exists",
|
"ToastDeviceNameAlreadyExists": "Ereader device with that name already exists",
|
||||||
|
"ToastDeviceTestEmailFailed": "Failed to send test email",
|
||||||
|
"ToastDeviceTestEmailSuccess": "Test email sent",
|
||||||
"ToastDeviceUpdateFailed": "Failed to update device",
|
"ToastDeviceUpdateFailed": "Failed to update device",
|
||||||
"ToastDeviceUpdateSuccess": "Device updated",
|
"ToastDeviceUpdateSuccess": "Device updated",
|
||||||
|
"ToastEmailSettingsUpdateFailed": "Failed to update email settings",
|
||||||
|
"ToastEmailSettingsUpdateSuccess": "Email settings updated",
|
||||||
"ToastEncodeCancelFailed": "Failed to cancel encode",
|
"ToastEncodeCancelFailed": "Failed to cancel encode",
|
||||||
"ToastEncodeCancelSucces": "Encode canceled",
|
"ToastEncodeCancelSucces": "Encode canceled",
|
||||||
"ToastEpisodeDownloadQueueClearFailed": "Failed to clear queue",
|
"ToastEpisodeDownloadQueueClearFailed": "Failed to clear queue",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue