tawk.to lets you create a widget or a property for each language on your website.
Please note: Only one widget at a time can function on the same website. The examples below load a single property/widget according to the criteria you choose. To use this method, you will need to remove the WordPress plugin, if it is being used.
To use each model, you’ll need to do the following:
To set a widget to appear based on the language of a page, use the following code. Then, to override and change the widget that appears, modify the getChatId function to return a specific chat id for each language.
Here’s a way to change the property based on page language by modifying the `getChatId` function again and updating the return values for each language.
Changing the property connects your customers with the agents, statistics, shortcuts, and knowledge base of the new property.