Website Translator: Auto-translate based on browser language

We’ve added a new Translate to Visitor’s Language option to the Website Translator widget :rocket:

When enabled, the widget automatically translates the page into the visitor’s preferred browser language, making the experience more seamless for international audiences.

This option is disabled by default, but you can activate it on the Settings tab:


How it works


Automatic language detections

The widget checks the visitor’s browser language preferences and matches them with the languages configured in the widget.


Smart language matching

Languages are checked in order of browser preference, prioritizing exact regional matches (e.g., Portuguese (Brazil)) before falling back to another regional variant (e.g., Portuguese (Portugal)).


Manual selection takes priority

If a visitor manually selects a translation language, automatic translation is disabled for that visitor.


New Google Analytics analytics parameter

The afterLanguageChange event now supports an optional translation_trigger parameter with two possible values: auto or `manual:

Known limitation: Safari only exposes the first browser language through navigator.languages, so additional language preferences cannot be considered.


Back to Changelog →

Great !! Thank you <3

Is there a way to add this new feature “settings” > “Translate to Visitor’s Language” in all widgets please ? It would be so great to have this in all :sun:

Hello there, @user39741 :waving_hand:

Thank you so much for the feedback!

Unfortunately, there is no way to implement this feature to all widgets now. However, I totally get your point and agree that it would be awesome to automatically translate the widget content based on the location.

We already have a similar idea on the Wishlist and you can upvote it here: Auto-translation of all widgets based on location

What a great idea!

So… let me understand. The widget translates the page, but will not translate the Elfsight “contact us” form for the contact us section? Huhh? Doesn’t this defeat the purpose of translating a website so hopefully they will contact us? Isn’t that the whole point of a website? Perhaps I misunderstand?

Hi @Graham_Lowe, welcome to the Community! :waving_hand:

The Website Translator widget translates all the content on the page where it’s installed, including other Elfsight widgets, such as Contact Form.

The feature discussed in this post takes things a step further: it automatically detects your website visitors’ browser language, selects that language in the Website Translator widget, and translates the page content accordingly :slightly_smiling_face: