fix: default language in App.vue types
This commit is contained in:
parent
7543b3b5cd
commit
a89855a9d1
|
|
@ -39,7 +39,7 @@ import ContentLinkShare from '@/components/home/ContentLinkShare.vue'
|
|||
import NoAuthWrapper from '@/components/misc/NoAuthWrapper.vue'
|
||||
import Ready from '@/components/misc/Ready.vue'
|
||||
|
||||
import {setLanguage} from '@/i18n'
|
||||
import {DEFAULT_LANGUAGE, setLanguage} from '@/i18n'
|
||||
|
||||
import {useAuthStore} from '@/stores/auth'
|
||||
import {useBaseStore} from '@/stores/base'
|
||||
|
|
@ -76,7 +76,7 @@ watch(accountDeletionConfirm, async (accountDeletionConfirm) => {
|
|||
authStore.refreshUserInfo()
|
||||
}, { immediate: true })
|
||||
|
||||
setLanguage(authStore.settings.language)
|
||||
setLanguage(authStore.settings.language ?? DEFAULT_LANGUAGE)
|
||||
useColorScheme()
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue