diff --git a/dashboard/src/components/app/Info.vue b/dashboard/src/components/app/Info.vue index 66e908102..04f66b242 100644 --- a/dashboard/src/components/app/Info.vue +++ b/dashboard/src/components/app/Info.vue @@ -109,7 +109,7 @@ onMounted(() => {
-
{{ $t(' app.appInfo.checklistShow') }}
+
{{ $t('app.appInfo.checklistShow') }}
{{ $t('app.appInfo.checklistHide') }}
diff --git a/dashboard/src/views/ProfileView.vue b/dashboard/src/views/ProfileView.vue index 6eb2bd8cc..0248a3c34 100644 --- a/dashboard/src/views/ProfileView.vue +++ b/dashboard/src/views/ProfileView.vue @@ -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();