StandardValueSetTranslation supplies translated labels for a standard picklist value set in a particular language. It is the localization component: StandardValueSet defines the underlying picklist values, while StandardValueSetTranslation pairs their original labels with translated text.
The component name follows <valueSetName>-<languageCode>. For example, AccountRating-fr identifies the French translation of the AccountRating standard value set. Do not confuse this type with GlobalValueSetTranslation, which is a separate metadata type.
Key Elements
The following table covers the component fields and the manifest selector used to retrieve or deploy it. A manifest is the package.xml file that identifies metadata components.
| Element | What the Element Controls |
|---|---|
fullName |
The component identity, inherited from Metadata. The name combines the complete standard value set name and language suffix, such as AccountRating-fr. |
valueTranslation |
A repeated structure containing the original label and its translation for each included picklist value. An entry's presence does not prove that it contains translated text. |
masterLabel |
Required within a valueTranslation entry. Identifies the original, untranslated picklist label, not a field API name or value set developer name. |
translation |
The translated label within a valueTranslation entry. An untranslated value can contain only an XML comment showing the original label. |
members in package.xml
|
Selects a component such as AccountRating-fr under the manifest type name StandardValueSetTranslation. The wildcard * is supported. |
Behavior and Constraints
Each valueTranslation entry matches source text to translated text. For example, masterLabel can identify the original label Cold; it does not identify the associated field or the standard value set itself. The component name supplies the value set and language association.
An untranslated value can be serialized as <translation><!-- Cold --></translation>. The XML comment is not translated text. A retrieved component can therefore contain an entry for every picklist value without providing complete translation coverage. Check the actual text in translation, rather than counting files or entries.
When resolving the component name, preserve the complete value set name, including any namespace, and the complete language suffix. Do not treat the name as an association to CustomObject.
Deployment and Retrieval
Metadata API files use the .standardValueSetTranslation suffix and reside in the standardValueSetTranslations directory. For example, the French Account Rating translation is stored as standardValueSetTranslations/AccountRating-fr.standardValueSetTranslation.
To select that component in package.xml, set name to StandardValueSetTranslation and members to AccountRating-fr. Use * as the member for a wildcard request. Use the recognized standard value set name, rather than an object-and-field path; Salesforce provides a standard value set name list.
Retrieve the underlying picklist values as StandardValueSet components and their translated labels as StandardValueSetTranslation components. Their naming association does not, by itself, require deploying both components together or establish a deployment order.
If package version creation reports Required field is missing: valueTranslation, compare the affected filenames with the expected value-set-and-language naming pattern. A community report describes generated files with numeric names as the cause in one packaging case; the reported correction is detailed below. Removing those files from a local project is not the same as deleting a translation component from an org.
Relationships
The connection to the underlying value set is name-based, not an XML element reference. No XML reference element is needed to express it.
-
StandardValueSet: associated through the<valueSetName>-<languageCode>component name. ForAccountRating-fr, the associated value set name isAccountRating. This naming rule alone does not prove that the associated component exists in an org or establish a deletion rule.
Documentation Inconsistencies
Salesforce's filename description and valueTranslation field description use the term "global value set," although this type's defined purpose is translating standard value sets. Its naming association is to StandardValueSet. Do not interpret that wording as making this type interchangeable with GlobalValueSetTranslation.
Reported Issues
-
Package version creation can fail on generated translation files with numeric names. In a January 2021 report, package creation returned
Required field is missing: valueTranslationfor files such as8-pt_BR.standardValueSetTranslation-meta.xml. The reporter had already enabled Translation Workbench and end-user languages. They reported resolving the failure by removing the numeric-named files from the project and retrieving the actual translations withsfdx force:source:retrieve -m StandardValueSetTranslation. This was a correction for the generated files in that case, not a general instruction to remove translation components. See the package creation report and resolution. -
State and country translations may be retrievable through this type when looking under
AddressSettingsis unproductive. An October 2022 report identifiedAddressCountryCode-frandAddressStateCode-fras theStandardValueSetTranslationcomponents for French country and state labels configured through Translation Workbench. The answer reported using other language suffixes for other languages. See the state and country translation retrieval discussion.
Common Questions
How do I retrieve a standard picklist translation?
Use StandardValueSetTranslation as the manifest type and a member such as AccountRating-fr. The member combines the standard value set name and language suffix. Wildcard * retrieval is also supported.
Do I have to deploy StandardValueSet with StandardValueSetTranslation?
The naming association alone does not require deploying both components together or establish their deployment order. They represent different content: underlying picklist values and translated labels.
Why does a translation file contain the original labels in comments?
Untranslated values can serialize with the original label as an XML comment inside translation. That comment is not translated text, so a populated file does not necessarily mean translation coverage is complete.
How do I retrieve translated state and country picklist labels?
A community report identifies AddressCountryCode-fr and AddressStateCode-fr under StandardValueSetTranslation for French translations, with other language suffixes used for other languages.
What can cause "Required field is missing: valueTranslation" during package creation?
One reported cause was generated translation files with numeric names instead of standard value set names. In that case, removing those local files and retrieving the actual StandardValueSetTranslation components resolved package creation.