Translate the CDT labels
  • 01 May 2024
  • 2 Minutes to read
  • Dark
    Light

Translate the CDT labels

  • Dark
    Light

Article summary

Translate column and field labels that are displayed by the rendered Configurable Data Table (CDT).

Enable the CDT labels for translation by Translation Workbench

  • Header labels—Leave the Data Table Label Override field empty when defining the Data Table Configuration.
  • Field labels—Leave the Field Label Override field empty when defining fields to display in the CDT component. If you don't enter both Field Label Translation and Field Label Override, then the object field label value will be displayed.
  • Row- and header-level action button labels—Leave the Row Button Label Override and Header Button Label Override empty when defining row- and header-level action buttons.

Use Translation Workbench to translate labels

Field labels

To translate standard Salesforce field labels

Salesforce automatically translates standard field labels as Created By, Last Modified By, and Owner.

  1. Go to Setup > Customize > Tab Names and Labels > Rename Tabs and Labels.
  2. Go to the Custom Tabs section.
  3. Select Edit next to the custom object that you specified in your CDT configuration.
  4. In the Record Name field, specify the Object record name translation.
  5. Select Save.

To translate custom field labels

  1. Go to Setup > Lightning Experience Transition Assistant > User Interface > Translation Workbench > Translate.
  2. Enter the following filter criteria:
    • Language—As desired.
    • Setup ComponentCustom Field.
    • Object—The object to display in the CDT component. For example, Product Group Action.
    • AspectField Label.
  3. Select Save.

Header labels

To define a new table header label

  1. Go to Setup > Сustom Labels.
  2. In the New Custom Label dialog, enter the new table header label value.
  3. Select Save.

To translate a table header label

  1. Go to Setup > Сustom Labels.
  2. Select the Name of the custom label.
  3. In the Translations section, select New.
  4. In the Translation Text field, enter your desired label.
  5. Select Save.

Action button labels

To translate global value sets in the CDT component, perform the following steps, only instead of Data Table Header Buttons Labels and Data Table Row Buttons Labels, choose any other global value set. For example, a Product Group Action status.

To define row- or header-level action button labels

  1. Go to Setup > Picklist Value Sets.
  2. Depending on the type of button you are defining, select the Data Table Row Buttons Labels or Data Table Header Buttons Labels global value set.
  3. In the Values section, enter a new value that will be translated.
  4. Select the Add the new picklist values to all Record Types that use this Global Value Set checkbox.
  5. Select Save.
  6. Go back to the Data Table Configuration page, and choose the newly created Row Button Label or Header Button Label from a dropdown.

To translate row- or header-level action button labels

  1. Go to Setup > Lightning Experience Transition Assistant > User Interface > Translation Workbench > Translate.
  2. Enter the following filter criteria:
    • Language—As desired.
    • Setup ComponentGlobal Value Set.
  3. Select + to expand the Data Table Header Buttons Labels or Data Table Row Buttons Labels value sets.
  4. In the Value Label Translation section, enter the translation for the chosen value set.
  5. Select Save.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.