Explore whether we can refactor the [...local] pages into one set of pages #7

Closed
opened 2025-08-26 14:56:20 +00:00 by chartgerink · 1 comment
Owner

Currently, we duplicate the pages such that we can have localization. That is how astro defaults, but I wonder whether we can do this differently and still generate prerendered pages effectively.

https://borjagomez.com/en/blog/i18n-with-astro/

Currently, we duplicate the pages such that we can have localization. That is how astro defaults, but I wonder whether we can do this differently and still generate prerendered pages effectively. https://borjagomez.com/en/blog/i18n-with-astro/
Author
Owner

Tried with middleware, that didn't really work. In order to keep everything fairly functional, it is an option to ensure the pages are part of components that are reused in both the root page and the localized pages. This would then mean no drift as long as the pages are present.

Closing this issue as the exploration is resolved. Continuing the work in #25

Tried with middleware, that didn't really work. In order to keep everything fairly functional, it is an option to ensure the pages are part of components that are reused in both the root page and the localized pages. This would then mean no drift as long as the pages are present. Closing this issue as the exploration is resolved. Continuing the work in #25
Sign in to join this conversation.
No description provided.