From d728fea3b145af66aff611591163af0a7038868a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 25 Jul 2024 11:58:58 +0300 Subject: [PATCH] fix language switcher --- .../interface_language_switcher.vue | 1 - src/components/settings_modal/tabs/general_tab.js | 6 ++++++ 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 index 8aa89f84..f7d5ef7e 100644 --- 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 index 96caab07..e9e8fa72 100644 --- 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: {