Skip to content

Commit

Permalink
feat(lang): load from config
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 30, 2023
1 parent df418e5 commit 6a07688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
<script setup lang="ts">
const siteConfig = useSiteConfig()
const colorMode = useColorMode()
const { locale } = useI18n()
colorMode.preference = siteConfig.theme || 'system'
locale.value = siteConfig.lang
useHead({
title: siteConfig.title,
Expand Down

0 comments on commit 6a07688

Please sign in to comment.