Translating the alert message in catalog client script to another language
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 05:29 AM
Hello,
I wrote a catalog client script to get an error message.
In that I used alert(); to get that message.
Now I want to translate the message into another language.
Can you please help with this?
I have also tried to create a Key in Messages>> in>> System Localization.
Thanks,
Chetan Marathe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 07:29 AM
Worked, Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 07:19 AM
It worked 🙂
Thanks!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 01:01 PM
Hi Raghav,
I have a similar requirement, trying to show an alert message in different languages on the portal. But it is not working as expected.
Below is my code placed in widget(client script). If possible for you, could you please let me know if I need to modify anything in the below code.
getMessage('Downloaded_Report_successfully', function(translatedMessage) {
alert(translatedMessage);
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 05:44 AM
@Chetan Marathe Detailed ServiceNow documentation link.
Please mark as helpful or correct answer based on impact
ServiceNow Community Rising Star, Class of 2023