Using Markdown with Content Collections for i18n
mainBecause .md and .mdx files cannot be directly translated by the integration, you should use Astro Content Collections to manage translated Markdown content.
Organize your content by language subdirectories within your collection. Then, use .astro files in your pages/ directory to render the content based on the detected locale.
Recommended Folder Structure:
.
└── astro-project/
└── src/
├── pages/
│ └── blog/
│ ├── index.astro
│ └── [id].astro
└── content/
└── blog/
├── en/
│ ├── post-1.md
│ └── post-2.md
├── es/
│ ├── post-1.md
│ └── post-2.md
└── fr/
├── post-1.md
└── post-2.md