mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 01:15:06 +02:00
Update:More localization strings #1103
This commit is contained in:
parent
c1b3d7779b
commit
400e34a4c7
63 changed files with 681 additions and 584 deletions
|
@ -192,14 +192,14 @@ export default {
|
|||
.then((res) => {
|
||||
this.processing = false
|
||||
this.show = false
|
||||
this.$toast.success(`Library "${res.name}" updated successfully`)
|
||||
this.$toast.success(this.$getString('ToastLibraryUpdateSuccess', [res.name]))
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
if (error.response && error.response.data) {
|
||||
this.$toast.error(error.response.data)
|
||||
} else {
|
||||
this.$toast.error('Failed to update library')
|
||||
this.$toast.error(this.$strings.ToastLibraryUpdateFailed)
|
||||
}
|
||||
this.processing = false
|
||||
})
|
||||
|
@ -211,7 +211,7 @@ export default {
|
|||
.then((res) => {
|
||||
this.processing = false
|
||||
this.show = false
|
||||
this.$toast.success(`Library "${res.name}" created successfully`)
|
||||
this.$toast.success(this.$getString('ToastLibraryCreateSuccess', [res.name]))
|
||||
if (!this.$store.state.libraries.currentLibraryId) {
|
||||
console.log('Setting initially library id', res.id)
|
||||
// First library added
|
||||
|
@ -223,7 +223,7 @@ export default {
|
|||
if (error.response && error.response.data) {
|
||||
this.$toast.error(error.response.data)
|
||||
} else {
|
||||
this.$toast.error('Failed to create library')
|
||||
this.$toast.error(this.$strings.ToastLibraryCreateFailed)
|
||||
}
|
||||
this.processing = false
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue