Add a Global Label for the UIPluginV2 contract in Modeler

Add a global label for the UIPluginV2 contract in Visual Studio Code-based Modeler to localize the contract in different languages.

Required Editions

Available in: Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled
User Permissions Needed
To add a global label for the UIPluginV2 contract: CG Cloud Developer, Admin
  1. In your Modeler workspace, go to the $workspace/src/Locale folder.
  2. Add the label to the Global Labels.globallabel.xml contract.
    <Label id="CardReportingCompetitorRate_Title" text="Competitor Rate" translationStatus="1"/>
  3. To populate the new label to all locales, run the CLI command in Visual Studio Code-based Modeler.
    sf modeler workspace refreshLocale
  4. Save your changes.