CustomObjectTranslation defines the object-and-language translation layer used by Translation Workbench and Rename Tabs and Labels. Despite its name, it applies to standard objects as well as custom objects. It supplies translated object names, component labels, help text, descriptions, and messages without replacing the underlying object, field, or business-rule definitions.
Use this type to move object terminology between orgs, including standard-object renamings. Do not confuse a translated label with a change to the component definition: translating a validation message does not change the rule, and translating a sharing reason does not grant record access. Standard picklist value translations belong in StandardValueSetTranslation, not in this type's local custom picklist translations.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the object-language pair, such as myCustomObject__c-de or Account-de. Required for Metadata API create, update, and delete requests; this does not mean every component can be deleted. |
caseValues |
Supplies grammatical forms of the object noun. Each entry combines article, caseType, plural, and possessive with a required value. Supported combinations depend on the language. |
gender |
Supplies the grammatical gender of the object noun. Language support determines which values apply. |
startsWith |
Supplies first-character information for language-specific grammar. Allowed values are Consonant, Special, and Vowel. |
nameFieldLabel |
Translates the object's name field, not the object noun represented by caseValues. Maximum length: 80 characters. |
fields.name |
Identifies the field being translated, relative to the object. Required within each field translation. Translation identifiers can differ from familiar runtime field API names. |
fields.label |
Translates the field label, with a maximum of 40 characters. Standard-field renamings can instead use fields.caseValues. |
fields.picklistValues |
Translates values from a local custom picklist field. Each entry requires masterLabel and translation. The setup value in masterLabel appears when a translated label is unavailable. |
fields.lookupFilter |
Contains translated errorMessage and informationalMessage text. It does not define filter criteria. |
fields.relationshipLabel |
Translates a lookup relationship label, with a maximum of 80 characters. A related-list label override can be stored here rather than under a layout. |
layouts |
Connects translations to a page layout through required layout. Nested sections entries identify sections through section and supply translated label values. Section labels can contain up to 765 characters. |
quickActions.aspect |
Distinguishes the quick action text being translated. Allowed values are Master and InfoMessage. Use it when the field label and informational message need different strings. |
validationRules.errorMessage |
Translates the message displayed when the named validation rule fails. It does not change the rule formula or activation. |
Behavior and Constraints
Object names can require multiple translations. A language can need separate singular, plural, article, possessive, and grammatical-case forms. Within caseValues, article accepts Definite, Indefinite, or None; possessive accepts First, None, or Second; and plural distinguishes plural from singular. The required value supplies the text for that combination. The same structure can occur within fields.
Not every language supports every grammatical value or combination. An enumeration value being available in the schema does not establish that a particular language accepts it.
Field translation names are identifiers, not displayed labels. Salesforce's standard-field example uses account_number. Preserve retrieved translation identifiers rather than deriving them from a displayed label or substituting a familiar runtime field API name. Standard-field renamings can use grammatical caseValues rather than fields.label.
Field translations can also include description and help. These translate the field description and field-level help text. recordTypes can translate both labels and descriptions; workflowTasks can translate descriptions and subjects. These entries change text, not the corresponding component's behavior.
Picklist translation has a defined boundary. fields.picklistValues represents local custom picklist values. Use StandardValueSetTranslation for standard picklist value translations. Task.Subject is a text field, not a picklist: its translations cannot be retrieved through Metadata API, although Translation Workbench can provide them.
Message translations do not configure rules or access. fields.lookupFilter translates lookup filter messages, not filter criteria. Lookup filters are not supported on article type objects. Likewise, validationRules.errorMessage only translates a failure message, and sharingReasons only translates labels.
Deployment and Retrieval
Member identity and file location. The component name follows <objectName>-<languageCode>. Salesforce documents local files as customObjectName__c-lang.objectTranslation, such as myCustomObject__c-de.objectTranslation, in the objectTranslations directory.
For packaged translations, Salesforce documents customObjectName-pkgNamespace__c-lang.objectTranslation, with myCustomObject-Acme__c-de.objectTranslation as an example. Preserve the full component name, including namespaces. The Metadata API reference also documents support for the * wildcard in package.xml.
Package translations can replace existing terminology. Retrieving or deploying translations from a package can cause package translations to override existing translations. In Rename Tabs and Labels, Reset restores the translations installed by the latest package. Distinguish package-provided terminology from local overrides when investigating a change.
Sparse retrieval is not proof that translations are absent. Community reports describe missing field and picklist translations appearing after the relevant CustomField or CustomObject was added to the retrieve request. A later report retrieved object and field translations with an object-translation request alone. Retrieve scope is therefore a diagnostic consideration, not a universal requirement to deploy all related metadata.
Source-format deployments can need the parent file. Salesforce source format can store field translations as child files alongside a parent object-translation metadata file. In a reported deployment failure, child files alone produced an "Unexpected child metadata" error; adding the matching parent file resolved it. This concerns the translation container, not a requirement to deploy the underlying object definition.
Deletion and reset are different operations. Deleting a custom object also removes its object translations. This does not establish that creating or deploying an object automatically creates translations for every language. Standard-object translations need different treatment: a reported destructive deployment of Lead-en_US was rejected because the translation was standard and could not be deleted.
A community reply reported resetting individual field translations by deploying explicitly empty label values. Removing a local file or omitting an element is not an established equivalent to that reset procedure. The requirement to supply fullName in a delete request does not itself make a translation deletable.
Relationships
The reference elements connect translated text to existing component definitions. They do not replace those definitions or establish that every referenced component must be deployed with the translation. In particular, the meaning of name depends on its containing structure.
Name-based object association: CustomObject is associated through the object-language component name, not through an object reference element. A first-dash matching rule takes the text before the first dash as the object name and retains the entire remaining suffix as the language code. Preserve namespaces before applying that rule. The documented packaged filename contains an additional dash, so this rule alone cannot establish the packaged object's identity.
References
-
CustomField:namewithinfields. -
FieldSet:namewithinfieldSets. -
Layout:layoutwithinlayouts. Nestedsections.sectionidentifies individual sections. -
QuickAction:namewithinquickActions. -
RecordType:namewithinrecordTypes. -
SharingReason:namewithinsharingReasons. -
ValidationRule:namewithinvalidationRules. -
WebLink:namewithinwebLinks. -
WorkflowTask:namewithinworkflowTasks.
Reported Issues
-
Translations can be missing from retrieved output even when configured. A 2017 retrieve-scope report described field translations appearing when the relevant field or object was included in
package.xml. A 2022 picklist report similarly requiredCustomObjectalongsideCustomObjectTranslation. However, a 2024 retrieval report obtained object and field translations from an object-translation request alone. These reports support checking request scope, not treating all related metadata as a mandatory deployment bundle. -
An empty Product translation can reflect the wrong translation member name. In a 2022 answer, clarified in 2023, an author reported that
Product-en_USwas required instead ofProduct2-en_US. The author attributed the distinction to Salesforce Support, but it remains reported behavior rather than a general naming rule for standard objects. See the Product translation member discussion. -
"Unexpected child metadata" can indicate a missing parent translation file. A 2022 source-format deployment report resolved the error by adding the matching parent
CustomObjectTranslationmetadata file alongside the field-translation children. Child files alone were insufficient in that case. See the missing parent file resolution. -
A retrieved managed-package layout name can cause a deployment failure if its prefix is missing. A 2017 report involving a managed-package object, a managed-package layout, and a non-English translation found that
layouts.layoutlacked the package prefix. The author reported correcting the prefix before deployment. This is not a general instruction to rewrite retrieved layout names. See the managed-package layout report. -
A related-list label override may be under the field translation, not the layout. In a 2022 discussion about Translation Workbench overrides for an installed package, the reported solution used
fields.relationshipLabel. This changes where to look when a renamed related list is absent fromlayouts. See the related-list label solution. -
A standard-object translation may reject destructive deletion. A 2019 report described
Lead-en_USbeing rejected as standard and not deletable. A 2020 reply reported resetting individual field values by deploying explicitly empty labels instead. That report does not establish that omission or local file removal clears a deployed value. See the standard translation deletion discussion.
Common Questions
Can I deploy Rename Tabs and Labels changes with CustomObjectTranslation?
Yes. This type carries object and field terminology used by Rename Tabs and Labels, including standard-object renamings. It changes translated or renamed text without replacing the underlying object or field definition.
Why are field or picklist translations missing from my retrieve?
Check the retrieve scope. Reports describe missing translations appearing after the relevant CustomField or CustomObject was included. Other reports retrieved them with an object-translation request alone, so sparse output does not prove the translations are absent. Standard picklist translations belong in StandardValueSetTranslation.
How do I delete or reset a standard-object translation?
Do not assume a destructive deployment can delete it: Lead-en_US was reported as standard and not deletable. A reply reported resetting individual field translations with explicitly empty labels. Omitting an element or deleting a local file is not an established reset method.
Where is a translated related-list label stored?
Look in fields.relationshipLabel. An installed-package override was reported there rather than under layouts.
Why does deployment say "Unexpected child metadata" for CustomObjectTranslation?
A reported cause is a missing parent object-translation metadata file in Salesforce source format. Adding the matching parent file alongside the field-translation children resolved that deployment error.