I retrieved a translation metadata via the Metadata API with the following package.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>Translations</name>
</types>
<version>57.0</version>
</Package>
What I got was the following da.translation
file:
<?xml version="1.0" encoding="UTF-8"?>
<Translations xmlns="http://soap.sforce.com/2006/04/metadata">
<customApplications>
<label><!-- Accounting --></label>
<name>Accounting</name>
</customApplications>
<!-- some more lines of XML here -->
<quickActions>
<label><!-- New Case --></label>
<name>New_Case_Quick_Action</name>
</quickActions>
<!-- some more lines of XML here -->
</Translations>
What I did next was setting up the label for the New_Case_Quick_Action
Quick Action and then deploying it back to the same Environment. Couldn't do so, though, as I received an error:
In field: name - no QuickAction named New_Case_Quick_Action found
After an investigation, it turned out that it is a managed package-owned Action on the Account object. It creates a new Case. I can translate it in the Translation Workbench at the "Override" section.
I don't mind translating some components manually, but does anybody know why were they retrieved to the da.translation
file in the first place if they are impossible to deploy? Is there any workaround to this problem?
Possible hint (?): It's a Sandbox created out of the already functioning Production environment with a couple of packages installed. Maybe I should reinstall some?
namespace__New_Case_Quick_Action
, where you substitute the package's namespace in place ofnamespace
?package.xml
that I provided in the question ->SFDX: Retrieve Source in Manifest from Org
|| 2. A direct command in PowerShellsfdx force:mdapi:retrieve -r .\manifest -k .\manifest\translations.xml --unzip
, wheretranslations.xml
is the same as mentioned before. || 3. A direct command in PowerShellsfdx force:source:retrieve -m Translations:da
|| Always the same result, a 30k-liner with content without specified namespaces.