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
+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();