Multi language forms and workflows
Just curious to know how you guys handle multilingual setups with Fluent.
Let’s say you have 3 different audiences speaking 3 different languages (or more), how do you usually manage this across forms, automations, etc.?
Some options we’re considering:
- Adding a “select language” field on forms, then running separate workflows for each language.
- Redirecting users based on IP/country, so they land in the right system from the start.
- Or even set up localized pricing alongside translations.
And above all: how do you approach site translations alongside these automations?
Any tips or experiences would be super appreciated 😄.
Fluentforms has a wpml addon that is able to create translated forms. But, I was not able to find a way to segment the (crm) submissions into language, so I follow your post 🙂
Let’s see, how many ideas we can gather here! :)
Related blog about our WPML integration you might explore - https://fluentforms.com/multilingual-forms-for-fluent-forms-with-wpml/
Nishat Shahriyar that is very informative, but does not answer the question on how to segment the submissions, or conditionally add a tag that can be used in CRM to segment for language.
Is there a way to auto-populate a hidden field or so with the language inside? Or maybe some native solution that I did not see?
Natascha Vantuykom That post highlights the integration.
It might be complex to segment the submissions, or conditionally add a tag that can be used in CRM to segment for language. you can auto-populate a hidden field with a shortcode and tag them from FluentCRM integration's conditional tag settings.
try this in functions.php or in snippet plugin ---
// Add the smartcode to Fluent Forms editor suggestion list
add_filter('fluentform/editor_shortcodes', function ($smartCodes) {
$smartCodes[0]['shortcodes']['{ffc_site_language}'] = 'Site Language';
return $smartCodes;
});
// Make it available in Email / Confirmation Settings as well
add_filter('fluentform/all_editor_shortcodes', function($data) {
$customShortCodes = [
'title' => 'Custom',
'shortcodes' => [
'{ffc_site_language}' => 'Site Language',
]
];
$data[] = $customShortCodes;
return $data;
}, 10, 1);
// Transform the shortcode value for input default values
add_filter('fluentform/editor_shortcode_callback_ffc_site_language', function ($value, $form) {
return get_locale();
// or use get_bloginfo('language') if you prefer
}, 10, 2);
// Transform the shortcode value for email / confirmation
add_filter('fluentform/shortcode_parser_callback_ffc_site_language', function ($value, $parser) {
return get_locale();
// Example output: en_US, bn_BD, fr_FR
}, 10, 2);
let me know if this works
Nishat Shahriyar Hello Nishat.
I tried it on a staging site, and it appears to fetch properly the site language.
I guess this could be a possible workaround in case someone wants to use a hidden field for this.
I am still hesitant, and doubtful on how this could be implemented at a full site level.
Use Case: A site that (like Apple site and many ecommerce one), suggests changing the language to the IP detected one. Once it is selected, we have a way of customizing each workflow.
I am not sure on how translation plugins works. I think some create subdirectories like mydomain.com/es ; mydomain.es/eng , etc
And not sure how on this cases it could work.
Also, I think another approach is with subdomains (but that will add so much work due to duplication).
So I think that probably a translation plugin is key.
On this point, what would you recommend?
I am thinking of just, setting a step on the form so as to the user to choose their language, and that's it. Not sure if this is the best approach though. But I have seen that's the way used by some sites.
Jorge de los Reyes setting a step on the form so as to the user to choose their language is one way to do it. You can conditionally show their language in the next steps, but it will add more manual work.
For now, you can use WPML Fluent Forms integration to translate the forms with a hidden field. We are thinking of a way to make it more flexible. Let's see what we can do!
Nishat Shahriyar awesome! I’ll definitely check that integration. Thank you for the efforts 💪♥️
We’ll keep an eye on the updates!!