WPML
How to integrate WhatsApp widget and button with WPML
Last updated
Was this helpful?
How to integrate WhatsApp widget and button with WPML
Last updated
Was this helpful?
WhatsApp widget strings includes widget label and greetings shown on the floating widget.
In order to translate these strings, follow these steps:
1 - Navigate to WPML → Translation Management and scroll down to the Other texts (Strings) section.
2 - Select all the strings and click on the Translate your content button.
3 - After clicking the Translate your content button from step 2 above, it will take you to the screen shown in the screenshot below, just click on the Translate button and wait for the action to complete.
4 - The pop-up screen will display, click the Go to Translations link to continue.
5 - Click the vertical dots to add the display filters including, IDs and Dates, so you can now start translating to each language using the Translate button.
6 - Finally, fill in or adjust the texts and when you are done, click on the Complete Translation button to save the changes.
Operators are your company members or support agents that you choose to show on the floating widget or WooCommerce button.
Many online business prefers to use a local operator with a different WhatsApp phone number for the local customers. Therefore, translating WhatsApp operators is to add and localize new members, so to speak.
Here are the basic steps to add and localize a new member:
1 - Visit All Accounts: In this list, you will see the list of available operators for each language.
For instance, in the screenshot below, I have 2 English operators, 2 Germans, and 1 Japanese.
2 - Select a foreign language from the WordPress admin top bar.
Eg: Select Deutsch if you want to add German operators.
4 - When you've successfully added new operators, you will see them once you click on the language filter.
Assuming you're selecting Deutsch from the WordPress admin top bar, you will see Sprache as Deutsch. And in the "Add new account" screen, you can add the German translations to this operator.
This German operator's information will be used in the WhatsApp chat widget that shows in German locale.
Likewise, you can continue adding Japanese operators by selecting 日本語 from the admin top bar.
Step 2: Add translated WhatsApp operators
Select a language from the admin top bar, eg. Deutsch
Navigate to WhatsApp > Floating Widget
Under Selected Accounts, please pick the operator you want to show from the list of translated operators available in that language.
Step 3: Display WhatsApp content in multiple languages
Once you finish adding corresponding operators to each local language in WhatsApp plugin settings, now you can set up display options in WPML Settings.
Look for "WhatsApp Accounts" and you will see its display options.
Case 1: If you want to show just the German operators in German language, select only show translated items.
With this setting, only the two German operators will display in accordance with German locale.
Case 2: If you want to show German operators if available, and also show English operators as a fallback, please select use translation if available or fallback to default language.
With this setting, the English operators and the other two Germans will display in accordance with German locale.
Case 3: If you want to show all operators regardless of the locale, you can select Not translatable. But this is not recommended.
3 - Add new account: This will add a new operator to the selected destination language. Learn more on .
Step 1:
Eg. I have created 2 members for German locale from , so I have 2 accounts available here.