Virtual agent greeting translation

si21
Tera Guru

Hi,

I have written below code for Greetings in my VA setup topic. It is working fine normally but when translated it not working as expected.

find_real_file.png

I have used multiple message keys here,  bottom gs.getMessage("Hi , im your.......)  translation is working fine but the highlighted key (Welcome back........)  is not getting translated.

Please help me understand where I went wrong.

Thanks in advance.

3 REPLIES 3

esebasti
Tera Guru

Hi there, the below link might help. You might have to put the text you want returned to the user into the UI Messages and use 'vaContext.getRequesterLang()'

 

https://community.servicenow.com/community?id=community_question&sys_id=502a9f35dbe69c1466f1d9d9689619a3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Can you share actual screenshots? What you are sharing now looks a bit weird, also the getMessage contains a spelling error, or might that actually be the issue 🙂

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

Siri, 

think you might have a typo in your message call, there appears to be no space between "can" and "i", it's written as "cani" in your key. Without knowing more details I suspect it's not matching your key due to the typo 🙂

 

Many thanks,
Kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization