UI BUILDER: How to translate an Alert inside a client script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 09:59 AM
Hi developers, how can I translate the content of my alert depending on a user language?
Thanks in advance, Fabrizio
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 10:45 AM
Hi Fab,
Probably define a variable before the function and pass that variable in the function.
var myalert = "";
If(user.lang == "en"){
myalert = "This is english alert";
}
else{
myalert="My french is terrible";
}