[Multilingual Component] Translate server action generated messages

Forge Component
Published on 20 May by OutSystems R&D
16 votes
Published on 20 May by OutSystems R&D

hi there,

we are just starting to translate an app. we have some server actions that create text messages to be displayed onscreen in the mobile app. what would be the best approach to translate the server action messages? there is no GetTranslation server action, only a client action. What i thought of was:

  • trapping the message coming out of a server action and translate it client side, or
  • send the locale to the server action as a parameter and do the translation server side in the logic of the server action.

if there are better approaches, let me know please.




I would send the locale to the server action and send the translated string back. This minimized network traffic and allows you to dynamically change those translations without updating the mobile application. (server side), so it gives you some form of flexibility.

Also it keeps your logic in your app simple because you just display the output of that server action.


Thanks Bas,

that works.