1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 01:46:39 +01:00

fix language switcher

This commit is contained in:
Henry Jameson 2024-07-25 11:58:58 +03:00
parent da5df6e684
commit d728fea3b1
2 changed files with 6 additions and 1 deletions

View File

@ -78,7 +78,6 @@ export default {
}, },
set: function (val) { set: function (val) {
this.setLanguage(val) this.setLanguage(val)
this.$emit('update:modelValue', val)
} }
} }
}, },

View File

@ -75,6 +75,12 @@ const GeneralTab = {
label: this.$t(`post_status.content_type["${format}"]`) label: this.$t(`post_status.content_type["${format}"]`)
})) }))
}, },
language: {
get: function () { return this.$store.getters.mergedConfig.interfaceLanguage },
set: function (val) {
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
}
},
...SharedComputedObject() ...SharedComputedObject()
}, },
methods: { methods: {