How to translate a label of a modal in workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 05:56 AM - edited ‎04-23-2025 08:18 AM
I want the label of a modal to be translated in the logged in user language, I tried to change the payload of Action Payload Definition record for my modal but that is not working, how can I make that modal title or label translated.
OOTB record payload:
{
"label": "translate('Create')",
"userGivenTable": "cmdb_ci",
"table": "{{table}}",
"parentRecordSysId": "{{parentRecordSysId}}",
"parentFieldName": "task",
"referencedFieldName": "ci_item",
"extensionPoint": "CMDB_CI_QUERY_FILTER",
"view": "Default",
"columns": "",
"type": "m2m",
"hideSelectAll": false,
"relatedListName": "{{relatedListName}}",
"referenceFilterTable": "sys_db_object",
"referenceFilterField": "label",
"referenceFilterQuery": "super_class.nameINSTANCEOFcmdb_ci%5EORname%3Dcmdb_ci",
"referenceFilterLabel": "Configuration Class"
}
I changed it to:
"label": "$[Created]", also created a message for that but this is not working as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 06:01 AM
did you try to enable I18 debugging and see where the translations are stored?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2025 04:52 AM
hi @Ankur Bawiskar , no prefix is shown to label when I18N debugging is enabled, although the other fields in the payload contain the prefix GMLD, what does that mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2025 05:06 AM
GMLD -> sys_documentation
check this link
Everything you ever wanted to know about the 5 translation tables
Did you check any OOTB modal gets translated or not in Workspace?
If yes then check how it's getting translated and accordingly you can also configure.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader