jlarmstrongiv / astro-i18n-aut

The i18n integration for Astro 🧑‍🚀
https://www.npmjs.com/package/astro-i18n-aut
MIT License
132 stars 12 forks source link

Custom markdown translation #54

Closed artt closed 4 months ago

artt commented 4 months ago

I use this mainly so that pages in src/pages would be generated automatically for each language.

In my content/blog folder, I'd like to have the following structure:

        └── content/
            └── blog/
                ├── post-1/
                │   ├── index.en.md
                │   └── index.es.md
                └── post-2/
                    └── index.md

This is so that

  1. I have all files related to a post in one place
  2. Some posts might not have secondary language translation.

I can implement my own getStaticPaths in [...blog].astro just fine. But when I include astro-i18n-aut, getStaticPaths doesn't run anymore (as noted in the doc, I guess).

Just wondering if you have any recommendation for this use case? Is there something I could adjust to get this to work? Thanks!

artt commented 4 months ago

Never mind. It still runs :)