yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
502 stars 38 forks source link

Working with markdown pages (.md) #185

Open neo7-studio-web opened 8 months ago

neo7-studio-web commented 8 months ago

If anyone is wondering how to translate pages as .md files, here is a solution (example with a privacy policy page) :

koppk001 commented 6 months ago

I don't get it, you didn't put the translations in the public folder?

neo7-studio-web commented 6 months ago

I don't get it, you didn't put the translations in the public folder?

Nope. Why ?

koppk001 commented 6 months ago

What are the json files in the i18n folder? Are they not translations?

neo7-studio-web commented 6 months ago

Yes they are. My personal preference is to put files used as sources at build time in /src rather than in /public.