-
-
Notifications
You must be signed in to change notification settings - Fork 478
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
Detect browser language not working with strategy no_prefix with SSG #3066
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 Reproduction starter (v8 and higher) A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
I can't provide reproduction because of SSG so i'm posting logs from both versions. Detect locale from browser should be Version: 8.2.0 (working fine)
Version: 8.5.0 (not working)
|
我也出现了这种了问题。 |
我这里有一个复现, 项目地址为: https://github.com/Zhang-Wei-666/nuxt-i18n-ssg 也可以在这里预览: https://nuxt-i18n-ssg.vercel.app I have a reproduction here, the project address is: https://github.com/Zhang-Wei-666/nuxt-i18n-ssg You can also preview it here: https://nuxt-i18n-ssg.vercel.app |
Thanks for the reproduction @Zhang-Wei-666 ! I think I have an idea of what could be causing it and may have a fix for it soon. |
Environment
Reproduction
Describe the bug
Detect browser language not working with strategy no_prefix with SSG. When running app in DEV mode on localhost language is detected correctly.
When code is generated with
nuxt generate
and copied to server then browser detection doesn't work anymore.This worked fine with version 8.2.0.
After some investigation the problem from logs:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: