Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead 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
          Localization.localize()

          Localization.localize()

          Use this function to convert the date and time to the specified format. Consumer Goods Mobile App Framework uses a third-party library for date-time localization. If you request for date time translations, this function returns the formatted date according to the globally set locale. If the specified languageCode isn’t available or loaded, the english locale is set as default. languageCode must be as per ISO 3166 standard.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Parameters

          • input: Content to be localized.
          • type: Type of the content. It can either be date, dateTime, time, or number.
          • format: Optional and is used for date-time formatting, if provided.

          Returns

          If successful, the function returns localized.

           
          Loading
          Salesforce Help | Article