Preference center multi-language translations

@fscla
Mautic version: 5.04
PHP version 8.1.30

My problem:

I need to create multilingual pages in Landing Pages, in this case in Portuguese and in English. The idea is to use Mautic’s form builder to create them.

Use case example for the button:

In this example I have the token {saveprefsbutton} and the page will show the button with the translation according to what was set on the system ( In this case in English ).

And it appears like this:

So when I select the language in the settings, the translation is applied to the button with success. Also when I change the language on the system it is ‘downloaded’, it became available at /var/www/html/docroot/translations and the button assume the translation correctly as well.

Example when I change the system language to Portuguese:

My question is: does Mautic support multilingual forms, allowing the creation of two distinct pages without change any setting, each in its own language? Is there a native way to have a form in Portuguese, even if the system language is set to English, or is the form translation limited to the system’s configured language?

Cheers!

Hello @jgomes_87,

Sadly, Mautic does not currently offer native multilingual support. The language of your Mautic instance will be reflected on your preference page, which can limit accessibility for users with different language preferences.

However, since you’re using a custom landing page template, you can enhance it by integrating a script that displays a Google Translate banner at the top of the page. This banner allows users to select their preferred language, although the script automatically detects and applies the user’s browser language by default.

You can find a simple implementation guide here:
Google Translate Banner Guide - W3Schools

If you have experience with HTML, CSS, and JavaScript, you can take it a step further by replacing the banner with a dropdown menu that matches your landing page’s theme. This approach provides a more seamless and visually integrated UX.

You can find an example of how to create such a dropdown here:
Custom Language Dropdown Example - GitHub Gist

I hope this helps!
Feel free to reach me out.

Best regards,
Ricardo

1 Like