How to Translate the annotation in Service Portal based on user's language

tanguturi0527
Tera Contributor

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.

6 REPLIES 6

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.

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.