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
524 stars 37 forks source link

Hot Module Reloading localized pages instead of running the `npx astro-i18next generate` command manually. #110

Open yassinedoghri opened 1 year ago

yassinedoghri commented 1 year ago

This should be done using injectRoute function in the astro:config:setup to inject localized routes during build time. The generate CLI tool would most probably be discarded. pages folder wouldn't need to include localized pages anymore!

Alternative Create a Vite plugin and adding it to the astro:config:setup hook.

bmenant commented 1 year ago

This should be done using injectRoute function in the astro:config:setup to inject localized routes during build time.

It sounds like astro-18n-aut’s approach, doesn’t it?

tex0l commented 1 year ago

Hi! I just discovered your plugin, this feature is to me the missing puzzle piece to make this plugin the reference for i18n with Astro.

How can I help?