The Get current user locale action node allows you to retrieve the language currently used by a user at a specific point in a module flow. It is available for all tenants with multi-language enabled and is fully compatible with existing URL lang parameters.
You can use this node to:
- Branch logic based on the user’s language selection
- Store the user’s language in a case database for reporting or later use
- Populate
langparameters for integrations or downstream processes
How it works
The node returns an object with the following fields:
- Chosen language (Single select): Displays the readable language name (e.g., English, German, French). Options are limited to the languages configured for the module. Can be used in conditions for flow branching.
-
Locale code (Text): Contains the locale code (e.g.,
en-US,de-DE,fr-FR). Useful for storing in a case database or passing as alangparameter.
The Get current user locale action node works alongside the URL lang parameter and is backwards compatible with modules that previously used URL lang parameters.
Related articles
Deliver a Module in Multiple Languages Learn how to deliver a module in a particular language or across multiple specified languages.
Multi-language Applications Learn how to localize your entire application, including sidebar items and the end-user language switcher.
Translate a Module into Multiple Languages Learn how to translate the content inside individual modules.