2332c69557
- useSetLocale → destructured setLocale from useI18n() - addSeoAttributes → seo option for useLocaleHead() - process.env → import.meta.env for Nuxt compatibility - langDir: 'locales/' → 'app/locales/' (Nuxt 4 resolves from project root)
17 lines
317 B
Vue
17 lines
317 B
Vue
<script setup lang="ts">
|
|
const { locale } = useI18n()
|
|
const head = useLocaleHead({ seo: true })
|
|
|
|
useHead({
|
|
htmlAttrs: { lang: locale },
|
|
link: computed(() => head.value.link || []),
|
|
meta: computed(() => head.value.meta || []),
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|