Configuring Language I/O for ServiceNow
Configuring the Language I/O Translation Service
First, search for and change the current scope to “Language I/O”. Click the "globe" icon in the top-right corner and find the Language I/O Translator Service Spoke:
(Click to enlarge)
Then, follow these steps:
- Navigate to Language I/O > Translator Configurations and open the configuration record with the name “Language I/O”
- Set the record to “Active”:
(Click to enlarge)
- In the "Preferences"section, check both the “Mark as default for translation” and “Mark as default for detection” options:
(Click to enlarge) - In the "Language Code Mappings"" section, create new language code mappings to map the ServiceNow language codes to the Language I/O language codes. Code mappings means that the language codes in ServiceNow match the language codes used by Language I/O (for example fr-FR for French. If you are unsure of the correct codes, please consult your Language I/O Customer Success Manager):
(Click to enlarge) - Save your changes.
Setting up Connections and Credentials
- Open Language I/O > Connections & Credentials and open the “Language I/O” record:
(Click to enlarge) - Make sure that “Language I/O” in the Connections tab is active. Click the “Language I/O Customer ID” credential associated with the record.
- Enter your Language I/O API credentials as the username and password. Make sure it is set to “Active”:
(Click to enlarge) - (Optional) Enable the system property x_tmlab_lang_io.force_detect. This forces the "Translate Text" subflow to run the "Detect Language subflow" before translating the text:
(Click to enlarge)
Note: For more information about flows and subflows, see your ServiceNow documentation.
Retranslating content
The retranslate button on single and multi-line text fields only shows after a first translation is successful. You can only use it once: after you click it, the retranslate button disappears:
Single-line text fields
To enable the retranslation feature in a single line text field on the form:
- Open the form. Right-click on the field and click "Configure Dictionary".
- In the attributes section, add “Field Decoration” attribute with a value of “x_tmlab_lang_io_retranslation”.
Multi-line text fields
To enable the retranslation feature in a multi-line text field on the form:
- Navigate to the form that you want to edit. Right-click on the hamburger icon at the top-left and go to Configure > Form Layout.
- Find the “Retranslation” item and add it below the multi-line text field.
To add the retranslation feature to a second multi-line text field in the same form:
- Go to System UI > Form Sections.
- Open the record in the table and view where the formatter is located. The formatter on the case table is on the sn_customerservice_case table in the case view.
- In the "Section Elements" related list, there is an entry named x_tmlab_lang_io_retranslation.xml.
- Open the record. Right-click on the hamburger icon and click "Insert". A new x_tmlab_lang_io_retranslation.xml entry is now available.
- Return to the form that you want to edit.
- Click on the hamburger icon and go to "Form layout".
- Add the new Retranslation entry below the multi-line text field
Note: You can find the formatter that comes with the application in the task table. If you want to place the retranslate button in a different table, make sure that you insert the formatter and section element into the target table. You can do this via a simple script to set the table.
Activity stream
The retranslate button for the activity stream only shows when you can translate the last work note or comment in the activity stream. When you click the "Translate Last Note" button, it is replaced with a ‘Retranslate Last Note’ button. When you click the "Retranslate Last Note" button, the button disappears until new work notes or comments appear that can be translated:
(Click to enlarge)
To enable retranslation on the activity stream:
- Go to System UI > UI Actions.
- Open the ‘Translate Last Note’ record.
- Copy the record to the desired table.
- Verify and make sure it is active.
- Open the ‘Retranslate Last Note’ record.
- Copy the record to the desired table.
- Verify and make sure it is active.
Comments
0 comments
Please sign in to leave a comment.