How can we translate Push Notifcation Messages

Shweta44
Tera Contributor

We have a requirement to translate the Push Messages. We have added the translated text in Messages (sys_ui_message) table but it is not getting reflected in the mobile app. 

 

Pasted image.jpg 

The text that needs to be translated is "New comment for" and "New comment posted for".

 

Please let us know if anyone have worked on this. 

1 REPLY 1

jsanjuan
ServiceNow Employee
ServiceNow Employee

You can replace those "new comment" text in the Push Notification Message (sys_push_notif_msg) with  a variable {$mail_script:function name} to call a script message. The mail script can then contain your own logic to assemble the actual message, with considerations to call gs.getMessage to get translations from sys_ui_message.

User511754_1-1695009830717.png

 

User511754_0-1695009799711.png

 

For email script, you can refer to < https://www.servicenow.com/community/international-localization/emails-in-other-languages-easy-to-co... >