Questions and answers from the Weglot team


Bailie (Customer)

Re: How to redirect users based on browser language using javascript

How can I auto redirect users based on their browser language settings.

Max (Weglot Support)

Hi!

To activate the auto-redirection, you just have to add this to your setup code:
autoSwitch: 1

Best,
:)

Bailie (Customer)

Hello Max, Autoswitch:1 does not autoredirect, anything am missing? Below is my code

Max (Weglot Support)

Hi!

I've been automatically redirected to the French version actually!
And my browser is in French!

So it works :)

Best,

READY TO GET STARTED?
The best way to understand the power of Weglot is to see it for yourself. Get your website multilingual live in minutes.