Translations doesn't work when switching language with disabled useCookie property
See original GitHub issueVersion
Reproduction link
https://codesandbox.io/s/thirsty-lake-m7vwr
Steps to reproduce
Click on the link with the label: “Deutsch”
What is expected ?
The string “English string” should get translated to “Deutscher string”
What is actually happening?
Clicking the link changes the route to “/de”, which is fine. But the text doesn’t get translated.
If you set useCookie: true
in the nuxtConfig again, it works as expected.
Same behaviour can be observed, when you set useCookie: true
AND disable the cookies in the browser
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top Results From Across the Web
Translations doesn't work when switching language with ...
Clicking the link changes the route to "/de", which is fine. But the text doesn't get translated. If you set useCookie: true in...
Read more >Change Chrome languages & translate webpages - Computer
Go to a webpage written in another language. On the right of the address bar, click Translate . Chrome will translate your current...
Read more >Common Errors with Exporting and Importing Translation Files
This error message only applies to data translation files. Data translation isn't enabled or was disabled after the data translation file was exported....
Read more >Localization and translation - Shopify Help Center
When customers land on a translated URL, your store automatically shows the translated version if translations exist. Note. Except for Shopify Lite, each...
Read more >Change your translation settings in Outlook.com and Outlook ...
Change your translation settings · At the top of the page, select Settings Settings · Under Translation, choose one of the following: Ask...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like a bug, the module logic should be improved.
For your case, you could set
detectBrowserLanguage
tofalse
. Currently you have it set to:I have made a fix that should address that in #651 (not yet integrated at the time of writing).