Set userLanguage cookie when setting interface language

This commit is contained in:
Tusooa Zhu 2022-03-26 12:21:34 -04:00
parent 96a24ec625
commit a5e861cd01
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
7 changed files with 57 additions and 19 deletions

View file

@ -72,6 +72,12 @@ const GeneralTab = {
!this.$store.state.users.currentUser.background_image
},
instanceShoutboxPresent () { return this.$store.state.instance.shoutAvailable },
language: {
get: function () { return this.$store.getters.mergedConfig.interfaceLanguage },
set: function (val) {
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
}
},
...SharedComputedObject()
},
methods: {