9

Does anyone know which metadata object stores translations for the NavigationMenu component? Specifically, I'm using a TileMenu component in the Community Builder. The help page says to use Translation Workbench for Navigation Menu Item. The translation works fine, I just need to deploy it.

I've checked the following metadata objects and can't find the translation: NavigationMenu, objectTranslations, ExperienceBundle, Translations.

I've also exported Language Content from the Community Builder > Setup > Languages and it wasn't there either.

1
  • Couldn't find it when testing either. There's no reference to NavigationMenu in translations and I'm not aware of any special metdadata types like CustomObjectTranslation that would hold this. The TileMenu does show up in ExperienceBundle, but there's no reference to translations within it (though it does contain languages enabled). Mar 19, 2020 at 1:48

2 Answers 2

0

Please look into the NavigationMenuItemLocalization object. You should be able to export / import the translation data thru data loader or equivalent tools.

1
  • Welcome to Salesforce SE! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – identigral
    Aug 19, 2022 at 8:15
-2

@David Cheng, please try the below based on the MetadataService class from Andrew Fawcett.

How I can retrive "Community" metadata in Salesforce

NetworkBranding is a method in MetadataService.cls, so i searched for NavigationMenu and found a service method called as NavigationMenuItem. Check in the below git file link, line 11238.

https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataService.cls

So your package.xml to retrieve/deploy should be:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>cbDSN_Community</members>
        <name>NavigationMenuItem</name>
    </types>    
    <version>46.0</version>
</Package>

Let me know if it helps!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .