Loading
Salesforce now sends email only from verified domains. Read More
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
          Localize Display Card Labels

          Localize Display Card Labels

          To update language for the mobile app labels to German, change the language setting in the Consumer Goods Cloud offline mobile app and add the DE locale file in the VS code modeler.

          Required Editions

          Available in: Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled
          User Permissions Needed
          To localize display card labels: CG Cloud Developer AND Admin
          1. In the Consumer Goods Cloud offline mobile app, click Settings.
          2. Click Locale Settings.
          3. Select German as the language.
          4. In $workspace/src/locale, add the DE locale file.
            Localize Display Card Label
          5. To refresh the locale files, in the VS code terminal, run the sf modeler workspace refreshLocale command.
          6. Add these translated strings or labels to the DE locale file.
            «Label id="MyNoCardNoDataMainText" text="No data available, " 
            translationStatus="1"/›
            Label id="MyNoCardNoDataSubText" text="relax and enjoy the sun!" translationStatus="1"/›
            <Label- id="ShowAllDisplaysLink" text="Zeige alle Displays" translationStatus="7"/>
            «Label id="DisplayCardTitle" text="Displays" translationStatus="1"/>
            
            Localize Display Card
          7. Save your changes.
          8. To rebuild the contracts, run the sf modeler workspace build command.
          9. To view the updated labels in German, refresh the simulator app.
            Localize Display Card Label
          10. To customize the date and number in the German format, add this code to the localization section of the de.locale file.
            <Localizations>
               <DateFormats>
                   <Date value="DD/MM/YYYY"/>
                   <ShortDate value="MMM ddd"/>
                   <DateTime value="DD/MM/YYYY HH:mm"/>
                   <Time value="HH:mm"/>
               </DateFormats>
               <NumberFormats>
                   <DecimalSeparator value="."/>
                   <ThousandSeparator value=","/>
               </NumberFormats>
            </Localizations>
            
           
          Loading
          Salesforce Help | Article