GlobalValueSetTranslation

Contains details for a global value set translation. Global value sets are lists of values that can be shared by multiple custom picklist fields, optionally across objects.

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 

GlobalValueSetTranslation components have the suffix .globalValueSetTranslation and are stored in the globalValueSetTranslations folder.

Translations are stored in a file with a format of ValueSetName-lang.globalValueSetTranslation, 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: The translated name of a value in a translated global value set. Each valueTranslation is paired with a masterLabel, which is the original (untranslated) name of the value.

ValueTranslation Type 

The original value name and the translated value name in a translated global value set.

Fields 

masterLabel 

  • Type: string
  • Required: Yes
  • Description: Required. The original (untranslated) name of a value in a global value set. Each valueTranslation has a masterLabel paired with its translation.

translation 

  • Type: string
  • Required: No
  • Description: The translated name of a value in a translated global value set.

Declarative Metadata Sample Definition 

This example shows a GlobalValueSetTranslation component. When a value isn’t translated, its translation becomes a comment that’s paired with its masterLabel.

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

This example is a package.xml that references the previous definition.

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