logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: d728fea3b145af66aff611591163af0a7038868a
parent da5df6e684bdadad24d83c82230886cda5056bbe
Author: Henry Jameson <me@hjkos.com>
Date:   Thu, 25 Jul 2024 11:58:58 +0300

fix language switcher

Diffstat:

Msrc/components/interface_language_switcher/interface_language_switcher.vue1-
Msrc/components/settings_modal/tabs/general_tab.js6++++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/interface_language_switcher/interface_language_switcher.vue b/src/components/interface_language_switcher/interface_language_switcher.vue @@ -78,7 +78,6 @@ export default { }, set: function (val) { this.setLanguage(val) - this.$emit('update:modelValue', val) } } }, diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js @@ -75,6 +75,12 @@ const GeneralTab = { 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() }, methods: {