Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/docs/7.integrations/01.i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import { withLeadingSlash } from 'ufo'
import type { Collections } from '@nuxt/content'

const route = useRoute()
const { locale, localeProperties } = useI18n()
const { locale } = useI18n()
const slug = computed(() => withLeadingSlash(String(route.params.slug)))

const { data: page } = await useAsyncData('page-' + slug.value, async () => {
Expand Down Expand Up @@ -161,4 +161,4 @@ Make sure to handle missing content gracefully and provide clear feedback to use

You can see a complete working example:
- **Source**: https://github.com/nuxt/content/tree/main/examples/i18n
- **Live Demo**: https://content3-i18n.nuxt.dev/
- **Live Demo**: https://content3-i18n.nuxt.dev/