Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get the text in different language in email template

Community Alums
Not applicable

Hi Everyone,

In a template I message is present there..I need to have that message line(A new publication has been..) in different language..

template issue.png

 Thanks in advance

1 REPLY 1

Mohan raj
Mega Sage

Hi @Utsav JAISWAL,

 

To make the word "A new publication has been" translated into different language you need enable the translation plugin first. Reference below document to enable plugin.

Link : https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/administer/notification/task/activ...

 

The static content within mail scripts that requires translation must be enclosed within the gs.getMessage() function. Corresponding translations for these strings should be readily available in the Message (sys_ui_message) table.

 

To disable token translation, create the glide.email.outbound.static_translation.session.language.change.enabled system property and set its value to false. This will prevent the translation of tokens embedded within mail scripts.

 

About the system properties, refer the below link.

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/administer/notification/task/enabl...

 

To request translation for an email item:

  1. Locate the email item in the respective section:
    • Notifications: All > System Notification > Email > Notifications
    • Templates: All > System Notification > Email > Templates
    • Layouts: All > System Policy > Email > Layouts
  2. Select the item you want to translate.
  3. Click Request Translation and choose the languages for translation.
  4. Click Submit.

Reference link : https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/administer/notification/task/reque...

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.