--- title: Internationalize a widget description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-user-interface/service-portal/c\_WidgetLocalization.html release: australia product: Service Portal classification: service-portal topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Developing custom widgets, Service Portal, Configure UIs and portals, Configure user experiences] --- # Internationalize a widget 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. ```
${This message will be internationalized.}
However, this will NOT be.
{{c.message}}
{{c.data.message}}