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

Using next/link with the locale property. #80

Open
brunohoraeero opened this issue May 2, 2023 · 1 comment
Open

Using next/link with the locale property. #80

brunohoraeero opened this issue May 2, 2023 · 1 comment
Labels
question OP is asking for clarification or help

Comments

@brunohoraeero
Copy link

Hi, I have a language selector where I render every <NextLink /> passing the property locale so the URL uses the correct locale. But this is not being reflected and actually ignored by Link.

I was expecting that

<Link href={{ pathname: "/asdf", query: { test: "1234" }} locale="en" />

to result in something like /en/asdf?test=1234, but it is omitting the /en part.

Any ideas what part of the next/link I may need to mock to be able to test this?

@scottrippey scottrippey added the question OP is asking for clarification or help label Jun 9, 2023
@titenis
Copy link

titenis commented Jul 26, 2023

This is no help, but it looks like locale support is still missing:
https://github.com/scottrippey/next-router-mock#not-yet-supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question OP is asking for clarification or help
Projects
None yet
Development

No branches or pull requests

3 participants