
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 05:21 AM
I am wondering if "Rich Text" component in UI builder can be "translatable". We have 15 languages in our instance that we support. We are looking to create a new Portal using UI builder. In our testing we have a test page with a rich text component on it. (see below)
In service portals we built prior to UI builder, we could add an HTML widget to the page
In the HTML we would point it to a message in sys_ui_message table as shown below.
Then in the sys_ui_message table we would have an entry for each language we wanted to have the HTML translated to.
This way when the user viewed the Portal page the HTML would be in there language.
Question:
Is there a way to translate the UI Builder "Rich Text" component?
NOTE: I am looking for translating text in "UI Builder Rich Text Component" for a Portal Page.
(I was hoping to avoid having to add a separate rich text component for each language and hiding or showing based on the user's language).
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 12:28 PM
I have gotten a reply on how to do the translations. It turns out to be rather simple solution.
Solution: Create a message in sys_ui_message for each language you want to translate the Rich Text to. need to make sure to include any "html" tags in the message.
To test out the solution
- Added a new Rich text component (Rich text 5)
- I then edited the content of the HTML to set it to a "my_translated_rich_text".
Notice at the bottom of the Rich Text box, there is a "p", this is the HTML tag that Servicenow added to what I typed in the box.
Note: If you bold or Italicize, you will notice that the text string at the bottom changes. My recommendation would be to leave as simple as possible and not add any other formatting to the text. Do all your formatting in the message stored in the sys_ui_message table. - I then created entries in sys_ui_message for the "string" for the languages I wanted.
- The key point for the messages created above is that the "Key" needs to contain the html tag(s). Notice in point 2 at the bottom there is a "p". This is the HTML tag (<p>) that needs to be included in the Message key in the sys_ui_message table.
English
Italian - Run the site as an English user, notice text at bottom is in English
- Change user's language to Italian, notice the text at bottom was translated.
*** Message key needs to include the HTML tag(s) from the rich text element in the UI Builder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 05:58 AM
Hi
Check these links , it should help:
Can any one suggest how we can Translate "Rich Text label" Variable "Rich Text" HTML content?
https://community.servicenow.com/community?id=community_question&sys_id=97084049db0e3cd4b3c099ead3961944
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 06:31 AM
Please note I am not trying to add translations to Catalog Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 06:41 AM
Hi
This article by Mark should help you:
https://community.servicenow.com/community?id=community_article&sys_id=1bd1da2edb8224d0fa192183ca9619cf
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 08:11 AM