You can translate interface of Form or Picklists by following some steps which are explained below.
Steps to translate interface of Form #
In the examples shown below, I am using the existing web form which was created on Contact object to explain the translations. Refer to the academy articles on how to create a Web Form and send web form requests.
- Select the required Web form Doc Config and create a new DocConfig Datasources
Note: you can select an existing Data Source, and use it any number of times for different Doc Configs. In this case, go straight to point 3 or you can create a new Data Source and add to Doc Config.
- Create a new Data Source:
Data Source Name: Form Translation (for example)
Record Type: STATIC VALUES
Add “PDF Butler Static Data”
- Add this Data Source to Actionable of the Doc Config record.
Translations Datasource: Form Translation (for example)
- From setup, Go to Settings and click on Language & Time Zone. Change the locale to the desired display language, for example, select German, and then click ‘Save.
- Create a FORM Request.
by default the language for this form will be the same as the user who created this FORM Request. You can change the Locale as explained in step 4 or you can change the language for this form request alone, update the field:
FORM Request.Locale, for example en_US, de_DE, fr_BE - Then click on the link in the request and check the result. All the form translations happens as shown below.
Available values for translation: #
Make sure to give the exact names(without any extra spaces) for the translations to work.
- Fill out the form
- Progress Bar
- SUBMIT FORM ➜❯
- Privacy Policy
- POWERED BY
- Finish
- This form has been submitted successfully
- You will receive a copy in your email, now you can close the page.
- Close✕
Steps to translate Picklists #
- Go to the setup and type ‘Translation Language Settings’ in the Quick Find field. There, you can see the active languages. If not active, make sure to activate them.
- Then, go to the Translate section. In the Language dropdown, select German (for example). For the Setup Component, choose Picklist Value and Object – Contact. Select ‘Lead Source’ for example and add the picklist value label translation as shown on the screen.
- Next, create a Data Source with the record type Picklist Translation.
Fill in the Data Source Name, Translation Object, and Translation Picklist.
Note: If the object is custom, include ‘__cʼ in the Translation Object field (e.g., Object__c). Click the ‘Saveʼ button. The Data Source should be created. - The Data Source should be added to the Doc Config. Then, go to the Contact and create a request.
- Then click on the link in the request and check the result