Help Center Widget Customization
Automatic Language Redirection

Automatic Language Redirection

Last updated: 15 days ago
1 minute read
Steven Wise
CEO at SiteTran

ALL ARTICLES

Help Center

How Do I Automatically Show Users Their Preferred Language?

By default SiteTran will automatically detect and switch the page to your user's preferred language, based on their browser settings, provided that language is available on your site.

To disable automatic language detection and switch, add this line to the bottom of your SiteTran Widget code (not recommended):

sitetran.auto_switch_from_browser_lang = false;

On a user's first visit, the widget detects and switches to the visitor's browser language. This preference is stored in the sitetran_lang cookie and is automatically applied on future visits. To turn off this behavior and re-detect the language on every page load, set sitetran.save_auto_detected_language = false;

Couldn't find what you were looking for?

In this article