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

Can I use next-intl in Next.js app router, but not rely on the locale in the path? #490

Closed
EryouHao opened this issue Aug 31, 2023 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@EryouHao
Copy link

Is your feature request related to a problem? Please describe.

I'd like to use next-intl, but I don't want to utilize Next.js's [locale] routing mechanism, as SEO is not particularly important to me. Instead, I prefer to have a single path that allows access to pages in multiple languages, such as using the user's custom-selected language or browser preferences for displaying localized content.

My current live webpage is set up this way, with a language-switching button in the top right corner.

https://gridea.dev

However, I'm unsure how to use next-intl within the Next.js 13 app router mechanism. Could you please provide some assistance on this matter?

Describe the solution you'd like

The folder I expect is written as follows:

image

Describe alternatives you've considered

Not yet, but I still hope to use next-intl to solve this problem.

@EryouHao EryouHao added enhancement New feature or request unconfirmed Needs triage. labels Aug 31, 2023
@amannn
Copy link
Owner

amannn commented Aug 31, 2023

Duplicate of #366

@amannn amannn marked this as a duplicate of #366 Aug 31, 2023
@amannn amannn closed this as completed Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants