I’m working on an application in OutSystems Developer Cloud (ODC) where we are using multilingual support. Currently, we have English and Norwegian configured.The issue I’m facing: • When I change the language from a dropdown, all labels and texts on the screen are updated correctly. • But the table headers are not changing to the selected language immediately. • They only change after I refresh the screen.Expected behavior: • The table headers should switch language as soon as the user selects the new language, without needing a screen refresh.Has anyone faced a similar issue or can suggest how to fix this?
Hello @vinita verma ,
Try to use the below 2 method and let me know if it helps you: -
Wrap Headers in a Block
Use OnChange Logic
Warm Regards,
Vibhor
@vinita verma it may not be the best solution, but I faced a similar issue in a project before, English-Arabic in my case, and what I did is use an expression that check on the current locale and display text accordingly.
Again, not the best solution, but may provide a simple fix for your issue.
@vinita verma ,
I can't reproduce it, when I change language, the table headers change immediately. So you must be constructing them differently than just the vanilla text widget. Can you share an oml demonstrating this ?
If you are constructing the headers dynamically, then it is normal that you will have to redo that when locale gets changed (similar to having to refetch statics that you want to see translated)
Dorine
Hallo @vinita verma ,
I tried to reproduce what you did, but it worked correctly for me.
check the following
1. Make sure the behavior is set to "Translate",
2. you’ve typed the language name correctly when changing the language. (Example : 'ar-EG' not the same of 'ar-eg' )
https://personal-gnx6vddt-dev.outsystems.app/TableHeader/Bulkactionswithfilters?_ts=638982820615207127