Localizing a UI form
3 Tasks
45 mins
Intermediate
Pega Platform '24.2
User Experience
English
Scenario
GoGoRoad stakeholders have a requirement to translate the New vendor Case Type to Spanish.
Use the Localization wizard to localize the New vendor Case Type of the GoGoRoad application, export the files, translate properties on a UI form into Spanish, import the files, set the locale settings, and test the translated form.
The following table provides the credentials you need to complete the challenge.
Role | User name | Password |
---|---|---|
Application Developer | author@gogoroad | pega123! |
Note: The challenge walkthrough video is coming soon.
Detailed Tasks
1 Create a translation pack
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter author@gogoroad.
- In the Password field, enter pega123!.
- In navigation pane of App Studio, click Settings > Localization
- On the Localization landing page, on the Translation packs tab, click New to create a new translation pack.
- In the New translation dialog box, click Add language.
- In the language list, select Spanish ES (United States).
Note: If you have Pega GenAI enabled, a second checkbox will display for the selected language. Select the Localize with GenAI checkbox to pre-translate your content using generative AI. For more information on using Pega GenAI in localization, see Pre-translating your application with GenAI in Constellation.
- Click Next to proceed to the next step.
- Once the translation pack has been created, click Download > Download as Excel to download the zip file.
- Click Done to close the dialog box. The Spanish ES (United States) language pack appears in the Translated packs tab.
2 Edit the translation package
- Extract the contents of the translation package to your local drive. The translation package decompresses to a folder named <LanguageSelectedForTranslation>_Translation_excel (for example, es-US_Translation_excel).
- In the decompressed folder, open the GoGoRoad-es-US.xlsx file.
Note: If using Microsoft Excel 2003 or later, you can edit this file by clicking the Enable Editing button when the spreadsheet first opens.
- In the spreadsheet file, locate each English-language field value and rule key pair that is listed in the following table, and enter the Spanish text in the Translated string es-US column:
Field Value Rule Key Spanish text Name GOGO-GOGOROAD-WORK-NEWVENDOR!VIEW!CREATE Nombre Street GOGO-GOGOROAD-WORK-NEWVENDOR!VIEW!CREATE Calle City GOGO-GOGOROAD-WORK-NEWVENDOR!VIEW!CREATE Ciudad State GOGO-GOGOROAD-WORK-NEWVENDOR!VIEW!CREATE Estado Note: If you do not have access to Microsoft Excel, you can use an alternative spreadsheet editor or download the JSON file instead. - Save the Excel file to commit your translations.
- After the desired translations are complete, repackage the parent folder as a .zip archive.
Note: The localization wizard does not allow uploading .zip folders with spaces in the folder name.
3 Import the translation pack
- In the Localization landing page, in the Translation packs tab, to the right of the Spanish ES (United States) translation pack, click Actions > Import translation to upload your file.
- In the Import translation dialog box, click Choose a file and select the updated translation package you created in the previous steps.
- Click Next to import the translation pack.
Note: It may take several minutes to import the translation file.
- Click Done to close the Import translation dialog box. The status of the translation changes to Resolved.
Confirm your work
- In the navigation pane of Dev Studio, click the User icon > Operator to open the author@gogoroad operator record.
- In the Localization section, in the Default locale field, enter es_US to change the locale settings for the current operator.
- Click Save.
Note: You may need to log out and log back into the application for the locale change to take effect.
- Create a New vendor Case. When the UI form is displayed, verify the field labels are translated as shown in the following image.
- In the author@gogoroad operator record, change the Default locale to en_US and click Save.
- Create a new Vendor Case and verify the field labels are in English.
Note: This challenge does not have autograding validations.
This Challenge is to practice what you learned in the following Module:
Available in the following mission:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?