setCurrentLocal()
256
Views
3
Comments
New
Builtin & User functions

"setCurrentLocal" is an action that allows us to choose the language of the application. For example, if I want the application's local language to be Portuguese, I would put "pt-PT" in the input of this action.

Once we choose the language, it would be interesting if the built-in functions of OutSystems returned the output in the chosen local language, in this case, Portuguese. For example, using the formatDateTime(date, "ddMMMMyyyy") function would return "01Julho2023" instead of "01July2023" if the application's local language is set to Portuguese. This way, we wouldn't have to translate the function's output.

Nice Idea!!

An automatic translation! I love it! It would be of great use.

I agree, that could be useful.