Free cookie consent management tool by TermsFeed

Reference Translation Strings in your Applications

Overview

You can directly reference a translation string in interfaces and expressions throughout your application using the translation! domain. This domain prefix is a direct object reference to your translation string.

You can use the translation! domain to reference a translation string in any parameter with user display text. It's easy to construct your translation string references, since the translation! domain leverages type-ahead to suggest a selection of existing translation strings from the translation sets in your environment.

And, the translation string can be referenced using whichever locale is set as your user locale, as long as the translation string has a value for that locale. For example, if your user locale is Spanish, Peference the translation strings using Spanish. If a translation string doesn't have a value in your user locale, the translation string will use the primary translation locale.

Reference a translation string

You can use the translation! domain to reference a translation string in any parameter that shows user display text in any expression editor in your application, except for those used in record types.

Translation strings are ideal for translating the label, instruction, and tooltip parameters of input and display components. They are also great for translating links, buttons, charts, the names of process models,and more.

Translation strings are frequently used to translate interfaces, and the references can be used in both Expression and Design modes of an interface.

To reference an existing translation string in an interface in EXPRESSION mode:

  1. If necessary, remove the existing text in the parameter that you want to add the translation string to.
  2. Enter translation! followed by the translation string you want to use or select it from the list of suggested existing translation strings. You can hover over the suggested translation strings to make sure you're selecting the correct string.

Follow these same steps to reference a translation string from an expression rule or any object with an expression editor.

To reference an existing translation string in an interface from DESIGN mode:

  1. Click on the component that contains the parameter that you want to add the translation string to.
  2. In the COMPONENT CONFIGURATION pane, click Edit as Expression next to the parameter name.
  3. Delete the text that you're replacing with the translation string.
  4. Enter translation! followed by the translation string you want to use or select it from the list of suggested existing translation strings. You can hover over the suggested translation strings to make sure you're selecting the correct string.
  5. Click OK.

Tip:  If you are unable to reference a specific translation string, make sure that you have Viewer permission to the translation set.

Feedback