From 8713f1870f52c7a7e0831cc6976a1e99988f44f6 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Tue, 8 Nov 2022 12:25:47 +0000 Subject: [PATCH] use correct key for languages fixes #196 --- src/components/settings_modal/tabs/general_tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js index 935591dc..6e31366b 100644 --- a/src/components/settings_modal/tabs/general_tab.js +++ b/src/components/settings_modal/tabs/general_tab.js @@ -105,8 +105,8 @@ const GeneralTab = { return this.$store.getters.mergedConfig.profileVersion }, translationLanguages () { - const langs = this.$store.state.instance.translationLanguages || [] - return (langs || []).map(lang => ({ key: lang.code, value: lang.code, label: lang.name })) + const langs = this.$store.state.instance.supportedTranslationLanguages || { source: [] } + return langs.source.map(lang => ({ key: lang.code, value: lang.code, label: lang.name })) }, translationLanguage: { get: function () { return this.$store.getters.mergedConfig.translationLanguage },