---
sourceDocument: Australia ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-administration

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Translate a client script message

# Translate a client script message {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Translate the messages used by client scripts.

## Before you begin

Create a client script that contains messages. For information about creating client
scripts, see [Client scripts](https://www.servicenow.com/docs/access?context=client-scripts&version=australia&pubname=australia-api-reference&ft:locale=en-US).

Role required: admin

## About this task

Client scripts include a multi-line Messages field, which is for message strings that the client script can use as a key to look up a localized message alternative from the Message \[sys_ui_message\] table. Each
message key in a client script is on a separate line in the Messages field. The instance looks for a localized message string anytime the client script makes a getMessage(msg) call where the msg string matches a
key in the Messages field in the client script.

For example, if you add the string `Please populate the Reason` field
to the Messages field in the client script, then the instance will
look for a localized string from the Message `[sys_ui_message]` table
any time the client script calls:

`getMessage("Please populate the Reason field")`  
Note:  
If you create a record in the Message \[sys_ui_message\] table that uses an existing key and the same language, the message for existing references using the key can change. For example, if a record exists with "Refresh" for the key, English for the language, and "Refresh" for the message, and you create another record with the same key and language but a different message of "Refresh the screen", existing UI strings using the "Refresh" key will display the new "Refresh the screen" message. Records in this table are created in the global scope and aren't scope-restricted.

## Procedure

1. Navigate to AllSystem LocalizationMessages.
2. Select New.
3. On the form, fill in the required fields.  
   {#t_TranslateAClientScriptMessage__table_vyy_21t_gtb__entry__2}

   | Field | Description |
   |-|-|
   | Key | The internal unique identifier for this message. |
   | Language | The language the message is translated into. |
   | Message | The translated text that users see. |
   [Table 1. Message form]

   {#t_TranslateAClientScriptMessage__table_vyy_21t_gtb}  
4. Select Submit.  
   A new record is added to the Message `[sys_ui_message]` table for the localized message key string. For more information about this table, see [Message table](https://www.servicenow.com/docs/RwAzut3GJJGoamzrCQSCzA "The Message [sys_ui_message] table contains the translations for informational messages, confirmation messages, error messages, and other types of system messages across the platform.").

*[\>]: and then


