content icon indicating copy to clipboard operation
content copied to clipboard

Document driven and i18n

Open biroplane opened this issue 1 year ago • 4 comments

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 basePath or baseUrl to 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

biroplane avatar Apr 11 '23 21:04 biroplane

Any solution so far?

MrIsaacs avatar Jun 09 '23 03:06 MrIsaacs

We are currently have exact same challenge. Is Document driven approach with localized content even possible?

davision avatar Dec 19 '23 15:12 davision

https://github.com/nuxt/content/issues/2336#issuecomment-1851609319

oripka avatar Dec 19 '23 16:12 oripka

Well, dang.

davision avatar Dec 22 '23 10:12 davision