StandardValueSetTranslation

Contains details for a standard picklist translation. It returns a translated standard value set.

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

Parent Type 

This type extends Metadata and inherits its fields.

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 

Introduced in API version 38.0.

Fields 

valueTranslation 

  • Type: ValueTranslation[]
  • Required: No
  • Description: 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.