Monday, August 16, 2021

How to deploy Custom Labels translation

 

  1. Find file force-app/main/default/translations/<language_code>.translation-meta.xml
  2. If you don't have this file create it.
  3. You can find the language code here (ISO Language Code Table):  https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_categorynodelocalization.htm
  4. Use: 
    sfdx force:source:retrieve -p 
    "force-app/main/default/translations/
    <language_code>.translation-meta.xml"  -u   <Alias>
  5. You will get a lot of extra data - choose only what you need
  6. Done  

No comments:

Post a Comment

If you need to connect to the sandbox SFDX

 You can always view all possible connection methods in sfdx sfdx auth --help