How to Translate the annotation in Service Portal based on user's language
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2025 06:44 AM
Hi All,
Can anyone please help on how to translate the annotations used in Service Portal to be displayed based on user's language.
As of now it is being displayed only in English and below is the html code.
<sp-editable-field data-toggle="tooltip" title= "click here" editable-by-user="data.isLoggedInUsersProfile" table="sys_user" table-id="data.sysUserID" field-model="data.sysUserModel.u_support_language"></sp-editable-field>
I want this "title= "click here"" to be translated dynamically based on user's language.
Attached the screenshot for the reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2025 08:03 AM - edited ‎01-23-2025 08:04 AM
Understood.
What I would do is what I mentioned earlier.
1. Create an update set to capture the translated piece.
2. Open the widget in the platform to edit the code.
3. Switch the language on your session to the other language and refresh the page with the widget code opened to show it in the other language.
4. Edit your code, by modifying only the "click here" to the other language.
5. Save the record and remain in the same page.
6. Repeat the 3 to 5 until you cover all your languages.
Unless another community friend has a better approach, that is what I would do and hopefully you don't have many languages.
I do this most of the time for our 4 supported languages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2025 09:35 AM
Hi @Luiz Lucena ,
Thanks for the suggestion, but this won't work because it's an html script and scripts won't support translations. It's just display what you have hardcoded.
Regards,
Vinod Kumar.