question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Revert to detecting browser's language after manually setting a locale?

See original GitHub issue

Hello everyone,

In my application I’d like to have my locale switch have options like this: “English”, “French”, “Spanish”… and “Auto” which would revert the application to the default i18n state, where it detects the user’s browser’s locale.

I’ve tried using seLocale() or setLocale('') but without luck.

Is it even possible without deleting the cookie and refreshing? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
rchlcommented, Jan 13, 2021
0reactions
ThibaultNocchicommented, Jan 13, 2021

Thanks for the heads up! Have a nice day

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revert to detecting browser's language after manually setting ...
Hello everyone,. In my application I'd like to have my locale switch have options like this: "English", "French", "Spanish"... and "Auto" ...
Read more >
Solved: How to Detect a User's Locale in a Web App | Phrase
In this article, we'll go through three different ways of detecting a user's locale: through the browser's navigator. language s (on the client ......
Read more >
Change locale by detecting viewer's browser language setting ...
What I was doing is use jquery to set initial language by browser locale, and allow user to change it with press of...
Read more >
How to change the locale in chrome browser - Stack Overflow
Open chrome, go to chrome://settings/languages. On the left, you should see a list of languages. Use mouse to drag the language you want...
Read more >
Setting language preferences in a browser - W3C
Firefox. Open the browser settings and the Content tab. Under the Languages heading, choose your preferred language(s) by selecting the language ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found