How do I automatically redirect my visitors to their own language?

In this article, you'll learn how to automatically redirect your visitors to the version of your website that matches their preferred language.



1) What is the auto-switch feature?

Weglot offers an "auto-redirect" feature. When activated, it will automatically redirect visitors to a version of your website matching their browser's language, provided you manage this language in your Weglot project.

The redirection will not be based on the visitor's IP address.

2) How to activate the auto-switch feature?

All integrations

For all integrations, to activate this feature, go to your Weglot dashboard > General > Settings:

Once activated, visitors will be automatically redirected to their preferred language, provided you manage this language with Weglot. However, if you don't support the visitor's language, the fallback language they'll be redirected to by default is your website's original language. You may change the fallback language if you wish.

Using WordPress

If you use WordPress, you can go to your WordPress admin > Weglot Plugin > Other options. Then, check the "Auto redirection" option and click "Save Changes" at the bottom of the page.

If you use a cache plugin, you might need to use a different implementation of the auto-switch feature; more information is available in our developer documentation.

If you need assistance, feel free to contact us at support@weglot.com, and we’ll be happy to help you make it compatible with your setup.

Using Shopify

If you use Shopify, you can go to your Shopify Dashboard > Apps > Weglot Translate> Advanced settings to check the "Auto-switch" status. To activate or deactivate it, click "Manage" to open your Weglot Dashboard.

3) Using the auto-switch feature with the JavaScript integration

If you use Weglot with the JavaScript integration, note that the browser will store a language cookie, so the website will always be displayed in the language you last visited.

So, if visitors have already visited your website in a language other than their browser's language, they will be redirected to the version they last visited (unless they have cleared their cookies).

In conclusion, if it doesn't work, clear your cookies and cache, then check again in an incognito window.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us