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
          Refresh Locale Contracts

          Refresh Locale Contracts

          Refresh a locale contract to synchronize and add new, modified, and missing labels and images to the locale contract.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions
          User Permissions Needed
          To refresh locale contracts: Customizer, Admin

          The translationStatus attribute is set to “1” for each newly introduced line.

          Here are a few considerations with respect to refreshing a locale contract:

          • If a global label or framework label is deleted from a locale contract, the changes are reinserted into the locale contract when you refresh the locale. 
          • The refresh process never deletes labels, it only adds the missing ones. If a label is deleted from the global label or framework label, after refreshing the locale contracts, the corresponding label records aren’t be deleted. The label records continue to exist in the locale contracts.

          Prerequisites:

          • The current folder ($workspace/src/Locale) is a valid workspace.
          • A successful build was executed.
          1. At the command prompt or in a Terminal window, change the directory to the current workspace.
          2. To refresh all locale contracts, run: sf modeler workspace refreshLocale
            To refresh a specific locale, run:sf modeler workspace refreshLocale -c <language>.locale.xml.

            For example, the command to refresh only the de.locale.xml: sf modeler workspace refreshLocale -c de.locale.xml.

            The backend system finds the label with text=AUTO-GENERATED in the contract and searches for this text in the en.locale and replaces the associated text. If the backend system is unable to find the associated text in the en.locale, then the same text, AUTO-GENERATED, is used. The text replacing process is applicable to all locales except en. The refreshing process does not apply to the framework and global labels as the core design team or project team maintains these labels.
           
          Loading
          Salesforce Help | Article