Manager Hub : Translation not working

SujitK
Tera Contributor

We have added some widget instances in the service portal and added the content in it(rich content, styled content etc. which we have created from content library), I would like to know can that content get translated to any other language automatically?

we have tried but it is not getting translated, any idea how this can be achieved.

1 REPLY 1

ifti122
Giga Guru

Hi @SujitK,

Content from the Content Library doesn't automatically translate because it's rich, user-created content, not a system string. The platform's built-in translation features are not designed for it.

 

How to Translate Content Library Widgets

The most common approach is to manually create translated versions of the content.

  1. Duplicate the Content Record: For each piece of content, create a separate record for each language.

  2. Translate Manually: Open the new record and manually translate the content.

  3. Modify the Widget: Adjust your widget's server script to check the user's language (using gs.getSession().getLanguage()) and then display the correct, pre-translated content record.

 

Alternative for Simple Text

For simple, text-based content, you can use the Message table (sys_ui_message). This is the standard way to handle static translations.

  • Create a message record for each language (e.g., a key welcome_message for English, Spanish, etc.).

  • Use gs.getMessage('your_message_key') in your widget's server script. It will automatically return the message in the user's current language.

You can learn more about the different translation tables for the translation of static content in this article: Everything you ever wanted to know about the 5 translation tables.

To provide a more precise solution, could you please share more details about your specific problem, such as a code snippet or a screenshot of your widget's configuration?

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.