Fix setting of language in ProfileView
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user