Internationalize a widget
-
- UpdatedAug 1, 2024
- 1 minute read
- Xanadu
- Service Portal Designer
Use the ${}
or gs.getMessage()
syntax in the
HTML Template, Client Script, or
Server Script fields of a widget to tag strings for translation so you
can localize your Service Portal content.
The ${}
or gs.getMessage()
searches in the messages table
[sys_ui_message] in the platform to see what the translation would be.
Use the HTML template to internationalize strings in a widget. Type the following in an HTML template.
Writing text as ${message}
is the equivalent of writing
${gs.getMessage("message")}
in other parts of the system, but written as a
more legible shorthand.
Translating strings in the client script
Translating strings in the server script
Use the server script to translate schema options and other values during server-side runtime.