Contents
How do I translate custom picklist values in Salesforce?
First, make sure you have set up translation workbench. Now to Translate the picklist label navigate to setup → Translation Workbench → Translate. You will now be on the translate page. This is where you’ll be able to add translations for all sorts of metadata in Salesforce.
How do I add a translation in Salesforce?
From Setup, in the Quick Find box, enter Translation Language Settings , and then select Translation Language Settings. To activate a new language, click Add. Or to change an existing supported language, click Edit. If adding a language, choose a language.
How do I translate custom metadata in Salesforce?
To view the translatable metadata labels in your Salesforce organization, first enable Translation Workbench. Then, from the Translate Setup page, select a Setup component. If needed, select Object, Custom Report Type Entity, Flow, Flow Type, Flow Component, or Aspect. You can translate the following components.
What is schema PicklistEntry?
They display as drop-down lists in the Salesforce user interface. One of the items can be configured as the default item. A Schema.PicklistEntry object is returned from the field describe result using the getPicklistValues method.
How do I enable translation in workbench?
To enable Translation Workbench:
- Navigate to user name > Setup > Administration Setup > Translation Workbench > Translation Settings.
- Click Enable.
- Click Add to add English and any other language(s) that you will be using.
- For each language that you intend to customize or translate:
- Click Save.
How do you display picklist values in LWC?
Get Picklist values in LWC with default recordtype Import getPicklistValues wire method in your js file to get picklist values. Import getObjectInfo wire method in your js file to get default record type id. Call getObjectInfo wire to get default recordtype id. Now call getPicklistValues to get picklist values.
How to use custom field translation in API?
CustomFieldTranslation contains details for a custom field translation. In API versions 37.0 and earlier standard picklist values could be translated with CustomFieldTranslation. In API version 38.0, use StandardValueSetTranslation instead. For more details, see CustomField.
Where are the translations stored in mycustomobject?
Translations are stored in a file with a format of customObjectName__c-lang.objectTranslation , where customObjectName__c is the custom object name, and lang is the translation language. A sample file name for German translations is myCustomObject__c-de.objectTranslation.
Where are German object translations stored in Java?
A sample file name for German translations is myCustomObject__c-de.objectTranslation. Custom object translations are stored in the objectTranslations folder in the corresponding package directory.
Where are the translations stored in Salesforce.com?
For more information, see “Enable or Disable Translation Workbench” in the Salesforce online help. Translations are stored in a file with a format of customObjectName__c-lang.objectTranslation , where customObjectName__c is the custom object name, and lang is the translation language.