Fix setting of language in ProfileView
This commit is contained in:
@@ -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