Skip to content

Commit 35c88c1

Browse files
committed
feat: dir and lang to html attrs
1 parent fc9ac0a commit 35c88c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: app.vue

+9
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ const { locale } = useI18n()
1313
colorMode.preference = $settings.theme || 'system'
1414
locale.value = $settings.lang
1515
16+
const i18nHead = useLocaleHead({
17+
addDirAttribute: true,
18+
identifierAttribute: 'id',
19+
})
20+
1621
useHead({
1722
title: $settings.title,
23+
htmlAttrs: {
24+
lang: i18nHead.value.htmlAttrs?.lang,
25+
dir: i18nHead.value.htmlAttrs?.dir,
26+
},
1827
bodyAttrs: {
1928
class: 'relative',
2029
},

0 commit comments

Comments
 (0)