hozana/next-translate-routes

Is there a way to translate dynamic pages?

Opened this issue · 6 comments

image
image

Hey, is there a way how to translate specific named dynamic pages (like in the picture above with "hello")? The documentation/readme only explains how to restrict dynamic pages and how to append pre- and suffixes.

Thanks

That is indeed not supported, yet. But it might be possible...
It might be good, it might not be... 🤔 One must think about it twice before implementing that behavior.

Hey,

Usually I use folder structure like this.

pages/page-name/index.js 
pages/page-name/[slug].js

I think it would be great if there could be such an improvement. Could be "nice to have" improvement.

Any news on that?
Got some problems with dynamic pages. When I use next-translate link for dynamic pages the "parameter" is removed in the link. I think this has something to do with the missing feature but maybe its also another "problem".

E.g.

  1. I'm rendering some static Path pages like that

image

2. I'm routing to the pages like that:

image

3. This is what I get rendered:

image

I think this is because some routes are checked when generating static pages. As soon I use the Next/Link instead of link from next-translate-routes everything works like I would expect it.

+1!

@IvoHohl do you still have the issue with the last version of next-translate-routes?

@sdk1990 +1 on the feature request or on IvoHohl's issue?

Hey, I'm having the same issue. Was a solution made?