Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

StandardValueSetTranslation

Contains details for a standard picklist translation. It returns a translated standard value set.This type extends the Metadata metadata type and inherits its fullName field.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Important

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.

1<?xml version="1.0" encoding="UTF-8"?>
2<StandardValueSetTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
3    <valueTranslation>
4        <masterLabel>Cold</masterLabel>
5        <translation><!-- Cold --></translation>
6    </valueTranslation>
7    <valueTranslation>
8        <masterLabel>Hot</masterLabel>
9        <translation><!-- Hot --></translation>
10    </valueTranslation>
11    <valueTranslation>
12        <masterLabel>Warm</masterLabel>
13        <translation><!-- Warm --></translation>
14    </valueTranslation>
15</StandardValueSetTranslation>

The following is an example package.xml that references the StandardValueSetTranslation definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3        <types>
4        <members>AccountRating-fr</members>
5        <name>StandardValueSetTranslation</name>
6    </types>
7    <version>38.0</version>
8</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.