File Suffix and Directory Location
StandardValueSetTranslation components have the suffix .standardValueSetTranslation and are stored in the standardValueSetTranslations folder.
Translations are stored in a file with a format of ValueSetName-lang.standardValueSetTranslation, where ValueSetName is the global value set’s name, and lang is the translation language.
Version
StandardValueSetTranslation components are available in API version 38.0 and later.
Fields
| Field | Field Type | Description |
|---|---|---|
| valueTranslation | ValueTranslation[] | A list of values from global value sets to be translated. |
Declarative Metadata Sample Definition
The following is an example of a StandardValueSetTranslation component. When a value isn’t translated, its translation becomes a comment that’s paired with its label.
<?xml version="1.0" encoding="UTF-8"?> <StandardValueSetTranslation xmlns="http://soap.sforce.com/2006/04/metadata"> <valueTranslation> <masterLabel>Cold</masterLabel> <translation><!-- Cold --></translation> </valueTranslation> <valueTranslation> <masterLabel>Hot</masterLabel> <translation><!-- Hot --></translation> </valueTranslation> <valueTranslation> <masterLabel>Warm</masterLabel> <translation><!-- Warm --></translation> </valueTranslation> </StandardValueSetTranslation>
The following is an example package.xml that references the StandardValueSetTranslation definition.
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>AccountRating-fr</members> <name>StandardValueSetTranslation</name> </types> <version>38.0</version> </Package>
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.