mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-30 22:59:37 +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
|
@ -125,20 +125,6 @@ export default {
|
|||
processing: false,
|
||||
newUser: {},
|
||||
isNew: true,
|
||||
accountTypes: [
|
||||
{
|
||||
text: 'Guest',
|
||||
value: 'guest'
|
||||
},
|
||||
{
|
||||
text: 'User',
|
||||
value: 'user'
|
||||
},
|
||||
{
|
||||
text: 'Admin',
|
||||
value: 'admin'
|
||||
}
|
||||
],
|
||||
tags: [],
|
||||
loadingTags: false
|
||||
}
|
||||
|
@ -161,6 +147,22 @@ export default {
|
|||
this.$emit('input', val)
|
||||
}
|
||||
},
|
||||
accountTypes() {
|
||||
return [
|
||||
{
|
||||
text: this.$strings.LabelAccountTypeGuest,
|
||||
value: 'guest'
|
||||
},
|
||||
{
|
||||
text: this.$strings.LabelAccountTypeUser,
|
||||
value: 'user'
|
||||
},
|
||||
{
|
||||
text: this.$strings.LabelAccountTypeAdmin,
|
||||
value: 'admin'
|
||||
}
|
||||
]
|
||||
},
|
||||
user() {
|
||||
return this.$store.state.user.user
|
||||
},
|
||||
|
@ -249,7 +251,7 @@ export default {
|
|||
.then((data) => {
|
||||
this.processing = false
|
||||
if (data.error) {
|
||||
this.$toast.error(`Failed to update account: ${data.error}`)
|
||||
this.$toast.error(`${this.$strings.ToastAccountUpdateFailed}: ${data.error}`)
|
||||
} else {
|
||||
console.log('Account updated', data.user)
|
||||
|
||||
|
@ -258,7 +260,7 @@ export default {
|
|||
this.$store.commit('user/setUserToken', data.user.token)
|
||||
}
|
||||
|
||||
this.$toast.success('Account updated')
|
||||
this.$toast.success(this.$strings.ToastAccountUpdateSuccess)
|
||||
this.show = false
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue