Change the active language
Last updated
Was this helpful?
Last updated
Was this helpful?
By default an app will display the text and apply the formatting settings for the . To set a different language you need to run an , either automatically or triggered by the user, that contains the . The selected language is stored in the Active Language.
Add a Select component to the UI with Value bound to App Variables.Active Language
. In the app, the drop-down list will be populated with the that you have added to your solution and the active language will be selected.
Use the On Value Change event handler of the Select component to run a new action. In that action, add the . Set the Language from data property to App Variables.Active Language
. Now, when a new selection is made from the drop-down in the UI, the active language will be applied to the app for that user.
Note that this configuration will not store the user's selection for future sessions. To do that, you might want to store their preference in an object attached to their user. Then, you can run an action using the with and Language from data bound to the object class property where you have the preference stored.