Skip to content

Commit 6a07688

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app.vue

Lines changed: 2 additions & 0 deletions
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)