I needed some assistance in the language change functionality. I need to implement a dropdown for language select. Acording to select my language will be changed on the portal. As of now i am able to change the locale of pyUseLocale but the changes are not being reflected until i am not logging off and relogin.
***Updated by Moderator: Marissa to update categories***
1. Save As UpdateLocaleSettings to your custom ruleset. Please note it should have the same applies to class as the section where the dropdown is embedded
2. Add an onchange reload harness action and specify the activity UpdateLocaleSettings. Add pyUseLocale as the parameter like below:
I have attached a document with screenshots for your reference.
Just to add to other answers, after calling the UpdateLocaleSettings Activity, you can call another action 'Run Script' and in the function name, provide "location.reload". that will refresh the browser.