Fix setting of language in ProfileView

This commit is contained in:
Johannes Zellner
2025-03-29 21:14:13 +01:00
parent 55b946e784
commit 2eedfad833
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ onMounted(() => {
<br/>
<div style="display: flex; justify-content: end; align-items: center;">
<div class="actionable" @click="showDoneChecklist = true" v-show="hasOldChecklist && !showDoneChecklist">{{ $t(' app.appInfo.checklistShow') }}</div>
<div class="actionable" @click="showDoneChecklist = true" v-show="hasOldChecklist && !showDoneChecklist">{{ $t('app.appInfo.checklistShow') }}</div>
<div class="actionable" @click="showDoneChecklist = false" v-show="showDoneChecklist">{{ $t('app.appInfo.checklistHide') }}</div>
</div>
+2 -2
View File
@@ -31,9 +31,9 @@ const inputDialog = useTemplateRef('inputDialog');
const languages = ref([]);
const language = ref('');
async function onSelectLanguage(lang) {
window.localStorage.NG_TRANSLATE_LANG_KEY = lang.id;
window.localStorage.NG_TRANSLATE_LANG_KEY = lang;
const error = await profileModel.setLanguage(lang.id);
const error = await profileModel.setLanguage(lang);
if (error) console.error('Failed to set language', error);
else window.location.reload();