Closed Designer023 closed 8 months ago
Yes, it could be handy... but, how would you translate a directory segment? I mean, consider the following pages directory:
/pages/
└ section/
└ page.tsx
How would you translate the "section" segment in the url /section/page
?
It would be really nice if instead of using
_routes.json
or_routes.yaml
if we could export the translates routes directly from the page itself eg.This would result in 2 pages for the
/fr/à-propos
and/es/acerca-de
along side the original/about
page.P.S. Great work on this project 👍