Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create a Locale Contract

          Create a Locale Contract

          In Visual Studio Code based Modeler, the Locale contract structure is generated by fetching the default labels and images implemented in the customizer’s snapshot. Use these instructions to create a locale contract for a custom locale other than the available in the default MCP zip.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions
          User Permissions Needed
          To create a locale contract Customizer, Admin

          For information on languages supported in Salesforce, see Supported Languages.

          1. Create an XML file in a text or XML editor. Specify the file name in the <languageCode>.locale.xml format. For example: bu.locale.xml for Bulgarian.
          2. Save the file in the $workspaceFolder/src/Locale folder in your Modeler workspace.
          3. Add this code to the <languageCode>.locale.xml file.
            <Locale language=”” languageCode=””></Locale>.

            Specify language and languageCode values in lowercase letters using only two letters.

            For example, in de.locale.xml use the following XML: <Locale language=”bu” languageCode=”bu”> </Locale>.

          4. To add entries of the newly added labels and images to the new locale contract, run the refresh command:sf modeler workspace refreshLocale.
          5. Save your changes and check in the locale contract.
           
          Loading
          Salesforce Help | Article