Help Needed: Manual Translation for Mail Scripts in ServiceNow.

tilekarnilesh
Giga Guru

Hi everyone,

I’m trying to manually translate mail scripts in ServiceNow.

I’ve already tried using System UI → Message Keys and calling those keys inside my mail script, but it’s not working.
The translated text is not appearing in the email it still shows the default (English) version.

Has anyone done this manually before?

Please check the attached screenshot for reference.

Any suggestions or examples on how to properly reference message keys or static translated strings inside a mail script would be greatly appreciated.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@tilekarnilesh 

did you try to use Multilingual email notifications?

Multilingual email notifications 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Diogo Ramos
Giga Sage
Giga Sage

Hello, 

Your code seems fine, I would assume that the code is running as system defaulting to english.
Just check that you have your last sentence using translation as well which is not the case at the moment before to your mailto tag

Try the approach explained here using 

gs.getMessageLang('message_key', 'language_id');

Docs here

Hope it helps