content
content copied to clipboard
Document driven and i18n
trafficstars
Is your feature request related to a problem? Please describe
I was trying to use Document driven with localized content.
the content structure is like this:
en/
1.company/
1.about.md
2.team.md
2.news/
...
it/
1.azienda/
1.chisiamo.md
2.team.md
2.news/
...
the problem is that i cannot use prefix strategy because it will not recognize root folder (en and it) as locales grouping folders
Describe the solution you'd like
I'd like to find a way to fetch content based on locale selection (browser detected or user selected at runtime)
Describe alternatives you've considered
- I've been searching for setting a
basePathorbaseUrlto dynamic a value (the locale) - I've tried to use a
[...slug].vue]page that wraps on top the locale with no luck, - searched all over the internet for similar issue/solutions
Any solution so far?
We are currently have exact same challenge. Is Document driven approach with localized content even possible?
https://github.com/nuxt/content/issues/2336#issuecomment-1851609319
Well, dang.