use supported languages from service

This commit is contained in:
FloatingGhost 2022-08-30 14:37:36 +01:00
parent 59eb434840
commit ef50c63dc7
7 changed files with 31 additions and 10 deletions

View file

@ -83,6 +83,9 @@ const GeneralTab = {
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
}
},
translationLanguages () {
return (this.$store.getters.mergedConfig.supportedTranslationLanguages || []).map(lang => ({ key: lang.code, value: lang.code, label: lang.name }))
},
translationLanguage: {
get: function () { return this.$store.getters.mergedConfig.translationLanguage },
set: function (val) {