Skip to content

Commit 6a07688

Browse files
committed
feat(lang): load from config
1 parent df418e5 commit 6a07688

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: app.vue

+2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
<script setup lang="ts">
88
const siteConfig = useSiteConfig()
99
const colorMode = useColorMode()
10+
const { locale } = useI18n()
1011
1112
colorMode.preference = siteConfig.theme || 'system'
13+
locale.value = siteConfig.lang
1214
1315
useHead({
1416
title: siteConfig.title,

0 commit comments

Comments
 (0)