Loading
Salesforce now sends email only from verified domains. Read More
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
          Set Up Custom Labels for Run-Time Message Translation

          Set Up Custom Labels for Run-Time Message Translation

          Enable translations for run-time messages defined in your constraint model by creating unique, translatable custom labels for the messages. The labels you set up replace the original static message text in the CML to facilitate translation. During run time, the messages appear in different languages, based on the sales reps’ locale and the translation settings of their Salesforce org. With this support, sales reps can see important configuration information in their local languages, which accelerates troubleshooting and improves usability.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions of Revenue Cloud with the Revenue Cloud Growth license or the Revenue Cloud Advanced license
          User Permissions Needed
          To create or edit a constraint model: Product Configuration Constraints Designer permission set
          To create and manage custom labels: Customize Application

          Before creating custom labels:

          1. From the App Launcher, find and select Constraint Models.
          2. From the constraint models list view page, click the model you want to add custom labels for.
          3. In the constraint model details page, select the version of the model you want to open.
          4. On the Constraint Builder, click Add Labels.
          5. In the Add Translation Labels for Messages window, specify a unique custom label for each message that you want to translate.
            Messages that don’t have a custom label associated with them aren’t translated to the user’s chosen language during run time.
            Add Translation Labels for Messages window that shows custom label assignment for messages
            Custom labels must start with a letter and contain only alphanumeric characters and underscores. Labels are case-insensitive.

          The custom labels that you assign to the messages replace the message text in your CML code. Manage all future changes to these labels from the Custom Labels page in Setup. See Custom Labels.

          Reuse Existing Custom Labels

          If you have existing custom labels that you want to reuse in your constraint model, add the label reference by using the type-ahead functionality or by providing the full label syntax in the CML Editor or Visual Builder.

          • In the Visual Builder, search for and select the custom label from the Run-time Message field on the constraint components.
          • In the CML Editor, use the $Label.labelName syntax to reference a custom label in your CML code.
           
          Loading
          Salesforce Help | Article