Multi-language

Boei can be set up in any language, because you can adjust all text πŸ˜€

But what if your site has multiple language options? How would Boei recognize which language to load?

You need to help Boei with this.

Using the Advanced installation, you can set up multiple buttons for a website.

It will look something like this:

If English
<script src="https://app.boei.help/embed/k/ENGLISH_BUTTON_CODE" async samesite="none"></script>

If Dutch
<script src="https://app.boei.help/embed/k/DUTCH_BUTTON_CODE" async samesite="none"></script>

TranslatePress

The following example displays how you can set it up in TranslatePress.

[trp_language language="de_DE"]
    German button
    <script src="https://app.boei.help/embed/k/xxxxxx-xxxx-xxxx-xxxxx-xxxxxx" async samesite="none"></script>
[/trp_language]

[trp_language language="en_US"]
    English/other button
    <script src="https://app.boei.help/embed/k/xxxxxx-xxxx-xxxx-xxxxx-xxxxxx" async samesite="none"></script>
[/trp_language]

WPML

The following example displays how you can set it up in WPML.

Add the following in your theme/child theme header.php file:

<?php if(ICL_LANGUAGE_CODE == 'fr'): ?>
    French button   
    <script src="https://app.boei.help/embed/k/xxxxxx-xxxx-xxxx-xxxxx-xxxxxx" async samesite="none"></script>
<?php else: ?>
    English/other button       
    <script src="https://app.boei.help/embed/k/xxxxxx-xxxx-xxxx-xxxxx-xxxxxx" async samesite="none"></script>
<?php endif; ?>

Have questions? Contact us via the Boei button anytime.

Last updated: Aug 15, 2022