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

Browser language detection #1872

Closed
olivier-voutat opened this issue Jun 16, 2022 · 3 comments
Closed

Browser language detection #1872

olivier-voutat opened this issue Jun 16, 2022 · 3 comments

Comments

@olivier-voutat
Copy link

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

I'm creating a new project from scratch.
I want my website to be in three language: en, fr, pt
en is the fallback language.
But if my browser languages has pt-BR and not pt, en is served.

Describe the solution you'd like

Is there a way to indicate that if browser languages detects pt-BR, fr-CH, etc, it fallback to pt, fr, etc ?

@isaachinman
Copy link
Contributor

Browser detection is handled by NextJs directly. Please open any questions/requests on that repo.

@flareso
Copy link

flareso commented Jul 5, 2022

@isaachinman its not working

@olivier-voutat
Copy link
Author

@isaachinman its not working

I found this issue vercel/next.js#18676 and added a proposal solution.

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

No branches or pull requests

3 participants