Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to translate dynamic pages? #16

Open
JonasGreim opened this issue Feb 23, 2022 · 6 comments
Open

Is there a way to translate dynamic pages? #16

JonasGreim opened this issue Feb 23, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@JonasGreim
Copy link

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

@cvolant cvolant added the enhancement New feature or request label Mar 8, 2022
@cvolant
Copy link
Collaborator

cvolant commented Mar 8, 2022

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.

@ozcancelik
Copy link

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.

@IvoHohl
Copy link

IvoHohl commented Nov 13, 2022

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.

@sdk1990
Copy link
Contributor

sdk1990 commented Feb 27, 2023

+1!

@cvolant
Copy link
Collaborator

cvolant commented Mar 3, 2023

@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?

@robatronPrime
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants