allow selecting languages for translation
This commit is contained in:
parent
9b4cddd2e9
commit
e7c21ffbd7
6 changed files with 34 additions and 3 deletions
|
@ -57,7 +57,8 @@ const ExtraButtons = {
|
|||
},
|
||||
|
||||
translateStatus () {
|
||||
this.$store.dispatch('translateStatus', { id: this.status.id, language: this.$store.state.instance.interfaceLanguage })
|
||||
const translateTo = this.$store.getters.mergedConfig.translationLanguage || this.$store.state.instance.interfaceLanguage
|
||||
this.$store.dispatch('translateStatus', { id: this.status.id, language: translateTo })
|
||||
.then(() => this.$emit('onSuccess'))
|
||||
.catch(err => this.$emit('onError', err.error.error))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue