How do I deploy Translations in Salesforce using ant?

How do I deploy Translations in Salesforce using ant?

Add a language to the Translation Workbench: this will be possible deploying an empty translation file.

  1. Create the next package.xml.
  2. Retrieve in workbench by using above package.xml.
  3. Download the zip.
  4. Create a new file, unpackaged/translations/de.
  5. Zip and deploy it.

How do you deploy components using ant?

  1. Navigate/Click on Setup.
  2. Go to -> Develop -> Tools.
  3. Click Force.com Migration Tool.
  4. It will download a zip folder named salesforce_ant_xxx.zip unzip this folder and store it on your computer. C:\Softwares\salesforce-ant.
  5. The unzip folder contains the following: A Readme.html file that explains how to use the tools.

How to retrieve and deploy custom metadata types using Ant?

Just to make sure not to repeat same mistake and save time in future, lets discuss how we can import / export or rather I will say retrieve and deploy Custom Metadata Types in Salesforce using ANT Migration toolkit. For the sake of simplicity consider below Custom Metadata Type schema.

Where do I find translations in Salesforce stack?

Translations seems to get some fields on the default objects, but custom fields and custom objects have different files for translations, inside a folder called objectTranslations. Thanks for contributing an answer to Salesforce Stack Exchange! Please be sure to answer the question. Provide details and share your research!

Can you deploy only one label in sandbox?

If you would like to deploy only a single label, then you should be able to edit your CustomLabels.labels file to reflect only the labels you wish to deploy. So the full process could be (from sandbox to production for example):

How to deploy custom labels in Salesforce.com?

Push the metadata changes to your production org using the widcard in the package.xml (this will deploy all the labels that remain in the CustomLabels.labels file) Hope this helps. Use below script in package.xml to get a single label.