Skip to main content
Deploy Translations

How to deploy translations.

T
Written by Tam Tran
Updated over 2 years ago

Deploy translations from Salesforce to Salesforce

Object Translations

Object translations include translated values for object related components including: custom field translations, object name case values translations, validation rule translations, record type translations, etc. You can refer to the Salesforce Metadata API for the full list of what included in Object Translations.

To deploy object translations, include the Custom Object Translation types together with the object related components.

For example, to deploy Japanese translations for Rating__c field and Global_Vertical__c field, select components as below.

Screen_Shot_2020-01-14_at_3.12.03_PM.png

If you want to deploy translations for the fields without deploying the fields themselves, you can use component exclusion options.

You can also compare the translated terms between the source and target org before proceeding with the deployment. Simply click on the diff icon on the Custom Object Translation row to view the line-by-line differences.

Screen_Shot_2020-01-14_at_3.10.24_PM.png

To deploy Japanese translations for all sub components of the Dynamic_Form__c object, select the Custom Object Translation type and the Custom Object itself. In this case, the line-by-line diff view would show differences for the full translated object.

Screen_Shot_2020-01-14_at_3.15.27_PM.png

Picklist Translations

Standard Picklist Translation and Global Picklist Translation are stand-alone component types. To deploy standard/global picklist translations, simply select the component types as below.

Screen_Shot_2020-01-14_at_3.17.12_PM.png

Other Translations

The remaining translations are covered in Language Translation component type. These include custom application translation, custom label translation, custom tab translation, flow translation, etc. You can refer to the Salesforce Metadata API for the full list of what included in other Language Translations.

To deploy translations for components in this group, select the Language Translation type and the related components (ie. custom label, application, flow)

For example, to deploy Japanese translation for a custom label, select components as below.

Screen_Shot_2020-01-14_at_3.21.28_PM.png

Deploy translations from Git to Salesforce

When you deploy translations from Git, the granularity is at the file level, not at the sub component level. What you see in the translation file as part of your git repository will be included in the deployment verbatim.

For example, to deploy Japanese translations for all sub components related to the Dynamic_Form__c object from Git, select components as below.

Screen_Shot_2020-01-14_at_3.26.49_PM.png

To deploy the remaining Japanese translations from Git (excluding object and picklist translations), select components as below.

Screen_Shot_2020-01-14_at_3.32.42_PM.png

Commit translations from Salesforce to Git

Commit Object Translations

Object translation commit does not support merge operation. That is, when you commit object translation, the content of the object translation will overwrite the object translation file in Git. Therefore, when committing object translations to git, make sure you select translations for the full object rather than translations for individual sub components, like so.

Screen_Shot_2020-01-14_at_3.38.39_PM.png
Did this answer your question?