Translations defines localized labels, messages, and other supported user-facing content for one language through Translation Workbench. A single language component can contain translations for applications, custom labels, tabs, flows, bots, prompts, and other definitions. Its nested translation entries are not independently deployable metadata assets.
Do not confuse this language-wide container with CustomObjectTranslation, which manages object-specific translations separately. Also, a retrieved Translations file is not necessarily a complete inventory: its contents depend on the other metadata requested in the retrieval manifest.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The language code, such as de, fr, or en_US. Required when creating, updating, or deleting the language component. This is distinct from nested component identities. |
customLabels.name, customLabels.label
|
name identifies the source custom label; label contains its translated text, with a maximum of 765 characters. |
flowDefinitions.fullName, flowDefinitions.flows.fullName
|
Identify the flow definition and nested flow being translated. The nested flow identity uses the flow API name without a version suffix. |
flowDefinitions.label |
Overrides the flow definition's translated label and stops it from inheriting subsequent label changes from the active flow version. |
flowDefinitions.flows.screens |
Contains screen and field translations, including helpText, pausedText, backButtonLabel, nextOrFinishButtonLabel, and pauseButtonLabel. |
bots, botBlocks, botTemplates
|
Preserve the source bot hierarchy. Bots and blocks contain version structures; templates contain dialogs directly. |
stepIdentifier, type within botSteps
|
Identify the original step and its kind. Both must match the source step. Message uses botMessages, Group uses nested botSteps, and VariableOperation uses botVariableOperation. |
messageIdentifier, variableOperationIdentifier, quickReplyOptionIdentifier
|
Link translated bot messages, variable operations, and quick-reply choices to their original elements. Matching visible text is not sufficient. |
quickActions |
Contains global quick-action translations, not object-specific quick actions. Its string-valued aspect accepts Master and InfoMessage to distinguish translated label and informational-message text. |
prompts.promptVersions |
Contains translated prompt text and links, including actionButtonLink, imageLink, and videoLink. Localization can change destinations and media. |
reportTypes.sections |
Contains section translations and nested columns. Translating the report-type label does not translate its sections or columns. |
conversationMessageDefinitions |
Separates the translated definition label from named constantValueTranslations, whose translated content is stored in value. |
dataConnectors |
Separates connector-level labels, descriptions, and help from nested attribute, option, and error translations. |
svcCatalogItemAttributes.serviceProcessName |
Identifies the required service-process context for a translated service catalog item attribute. |
svcCatalogItemGroups |
Requires serviceProcessName, groupName, and name. The source group name and translation entry name have different roles. |
Behavior and Constraints
Language identity and UI coverage
The component's language selection is separate from locale selection. Do not interpret every underscore in a filename as a namespace separator: en_US is a language code, while a package namespace is separated from the code by two underscores.
Language availability does not mean that every Salesforce interface is translated:
- Fully supported languages have broader Salesforce translation coverage.
- End-user languages translate standard objects and pages, but not administrative pages, Setup, or Help. Untranslated labels and Help appear in English. These languages are intended for individual end users, not as corporate languages; some features support only a subset.
- Platform-only languages support localization of custom functionality. Standard Salesforce labels fall back to English or, in some cases, another supported language.
Spanish (Mexico), es_MX, defaults to Spanish for customer-defined translations. Arabic, Hebrew, and Urdu require attention to Salesforce's right-to-left language support limitations.
Flow translations
flowDefinitions groups translations by FlowDefinition, with flows holding the nested flow translations. The documented supported process types are Flow and AutolaunchedFlow.
By default, a flow definition inherits the label of its active flow version. Setting flowDefinitions.label stops that inheritance. A definition label that appears stale can therefore be an explicit translation override rather than a failed update to the active flow's label.
Within a flow, choices, screens, fields, and stages are identified by their component names. A translated validationRule supplies errorMessage text; it does not replace or translate the validation expression. Screen localization also includes help text, pause confirmation text, and navigation-button labels, not just titles and field labels.
-
FlowScreenFieldTranslationdoes not support screen components that require Lightning runtime. This restriction applies to those components, not to every flow displayed in Lightning. - Screen-field
inputParametersand their supporting translation structures are reserved for internal use. They are not a supported general-purpose localization interface. -
textTemplatestranslations apply only to flows created through Salesforce Surveys and represent text on survey pages.
Bot translations
Bot translations follow the original hierarchy:
-
botscontainsbotVersions, which containbotDialogs. -
botBlockscontainsbotBlockVersionsand their dialogs. -
botTemplatescontains dialogs directly. - Dialogs contain
botSteps, including recursively nestedGroupsteps.
Bot and bot-version fullName values must match their original definitions. Each translated dialog's developerName must match the original dialog. The step, message, variable-operation, and quick-reply identifiers must also match their corresponding originals.
BotStepTranslation.type must match the original step type. Place translated content in the structure appropriate to that type: botMessages for Message, nested botSteps for Group, and botVariableOperation for VariableOperation.
For an underlying Collect operation, botMessages supplies translated prompts. botQuickReplyOptions supplies static choices when quickReplyType is Static. quickReplyOptionTemplate is a translated formula template for Dynamic choices of type Object.
retryMessages localizes conversation-repair attempts. successMessages localizes the successful-upload confirmation for CollectAttachment. These message lists serve different parts of the conversation and are not interchangeable.
Other translation distinctions
-
customLabels.nameremains the stable name used by consuming components. The translated wording belongs incustomLabels.label. - Use
quickActions.aspectwhen a global action's field label and informational message need different translated strings. - Prompt translations can change action destinations, displayed images, and videos as well as wording.
- Report-type sections and columns require their own translation entries; a translated report-type label does not substitute for them.
- Conversation message definitions distinguish definition labels from constant values. Data connectors similarly distinguish connector text from attribute, option, and error text.
- Service catalog entries use
serviceProcessNameto identify their service-process context. For item groups,groupNameidentifies the group, whilenameidentifies the translation entry.
Deployment and Retrieval
Metadata API retrieve() returns translations only for the other metadata types included in package.xml, the retrieval manifest. Requesting Translations alone is therefore not a complete translation inventory.
For custom-label translations, include both Translations and CustomLabels in the retrieval scope. Other categories likewise depend on including their source metadata types. The CustomLabels retrieval container and an individual CustomLabel reference are different scopes.
Translations supports the * wildcard in package.xml. To select a particular language, use its code as the member, such as de or es. A retrieved language file can be intentionally partial: missing entries do not establish that the source org has no translations for those components. Interpret the file together with its manifest.
Local Metadata API files use localeCode.translation, such as de.translation. Packaged translations use pkgNamespace__localeCode.translation, such as Acme__de.translation. The namespace separator is two underscores. Object-specific translations use CustomObjectTranslation and the objectTranslations folder instead.
A blank translation label does not remove existing text. Blank labels are skipped during deployment without an error, a behavior explicitly documented for bot dialog translations. A successful deployment containing blank labels is not evidence that existing translations were cleared.
The top-level fullName is required when creating, updating, or deleting the language component. Nested translation entries remain part of that component; their source-component names are not independent deployment identities.
Package-build configuration can also cause language-level deployment failures. The disposable org used to build a package can require Translation Workbench settings supplied through a definition file, even when Translation Workbench is enabled in the development org. The reported package-creation case below describes this diagnosis and its scope.
See the Salesforce Translations reference for the metadata definition and retrieval usage.
Relationships
The following element references identify localization targets, not component ownership or a mandatory deployment sequence. Only entries actually present in a language component determine its reference scope. In particular, the nested fullName references below identify bots and flows; the top-level fullName identifies the language.
References
-
Bot:fullNamewithinbots. -
BotBlock:fullNamewithinbotBlocks. -
BotTemplate:fullNamewithinbotTemplates. -
BotVersion:fullNamewithinbots.botVersions. -
ContextDefinition:namewithincontextDefinitions. -
ConversationMessageDefinition:namewithinconversationMessageDefinitions. -
CustomApplication:namewithincustomApplications. -
CustomLabel:namewithincustomLabels. -
CustomPageWebLink:namewithincustomPageWebLinks. -
CustomTab:namewithincustomTabs. -
Dashboard:namewithindashboards. -
Flow:fullNamewithinflowDefinitions.flows. -
FlowDefinition:fullNamewithinflowDefinitions. -
PipelineInspMetricConfig:namewithinpipelineInspMetricConfigs. -
Prompt:namewithinprompts. -
QuickAction:namewithinquickActions. -
RecordAlertCategory:namewithinrecordAlertCategories. -
Report:namewithinreports. -
ReportType:namewithinreportTypes. -
Scontrol:namewithinscontrols. -
TimelineObjectDefinition:namewithintimelineObjectDefinitions.
Documentation Inconsistencies
- The
FlowTranslation.fullNamedescription includes version-suffixed deployment examples while also specifying an unversioned name for the field. For the nested translation identity, use the flow API name without a version suffix. - The documented
BotVariableOperationTranslation.typevalue list omitsCollectAttachment, although thesuccessMessagesdescription explicitly associates it with that operation.CollectAttachmentis also an exposed enumeration value.
Reported Issues
-
Package creation can fail because the build org lacks Translation Workbench configuration. In a 2024 second-generation managed-package report, adding German custom-label translations caused
de: Not available for deploy for this organization. The accepted response recommended passing--definition-filewithsettings.languageSettings.enableTranslationWorkbenchset totruefor the disposable build org. Enabling Translation Workbench in the development org alone was not the configuration described for that environment. This is a reported diagnosis and remedy, not a universal explanation for the error. Package-build translation failure. -
Object and field translations can be missed when only the language container is deployed. In a 2015 report, some application text translated while custom-field and object text did not. The author reported resolving the missing object-specific scope by adding
CustomObjectTranslationto the manifest. Missing object-specific translations. -
Translation Workbench export can omit text that metadata retrieval exposes. In 2024, an admin reported missing custom-object names, name-field labels, and tab names from a Workbench export. The author later reported obtaining translation information by requesting both a language-specific
CustomObjectTranslationmember andTranslations. This does not establish that every export omission has the same cause. Export and metadata retrieval differences. -
A custom-label translation audit can use a Tooling API query instead of inspecting language files. A 2021 accepted answer reported querying
ExternalStringLocalization, includingExternalStringId,ExternalString.MasterLabel,ExternalString.Value,Value, andLanguage. In Developer Console, the answer specifies enabling "Use Tooling API". This is a data-query route, not aTranslationsmetadata relationship. Querying custom-label translations. -
Navigation-menu localization may require investigating a separate data object. After an admin could not find TileMenu navigation translations in
Translationsor other retrieved metadata, a 2022 answer suggested exporting and importingNavigationMenuItemLocalizationrecords. The discussion does not confirm that proposal as a completed workaround. Navigation-menu translation retrieval.
Common Questions
Why is my Translations retrieve missing custom-label translations?
retrieve() includes translations only for other metadata types requested in package.xml. Include both Translations and CustomLabels. Missing entries in a partial retrieval do not prove that the translations are absent from the org.
Where are custom-object and custom-field translations stored?
Object-specific translations are managed separately as CustomObjectTranslation in the objectTranslations folder. They are not nested entries in the language-wide Translations container.
Can I delete an existing translation by deploying an empty label?
No. Blank translation labels are skipped without an error. A successful deployment with an empty label does not show that the existing translated text was removed.
Why does my translated flow definition label stay unchanged?
Check flowDefinitions.label. Setting it creates an explicit translated definition label and stops that label from inheriting subsequent changes to the active flow version's label.
How do I fix "de: Not available for deploy for this organization" during package creation?
One reported cause is missing Translation Workbench configuration in the disposable package-build org. The reported remedy was to pass --definition-file with settings.languageSettings.enableTranslationWorkbench set to true. This is a diagnostic to check, not a universal explanation for the error.