FunctionCopy link to clipboard
resource( key )
Retrieves a string of translated text appropriate for the current user, according to their language preference, by matching a given key with text.
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Text |
The item paired with each desired translation in your resource bundle. |
ReturnsCopy link to clipboard
Text
Usage considerationsCopy link to clipboard
If no matching translation is available for the user's locale, the key itself is returned.
ExamplesCopy link to clipboard
resource("city")
returns ciudad
for es_MX and ville
for fr_CA
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Partially compatible | Can be used with Appian Portals if it is connected using an integration and web API. |
Offline Mobile | Partially compatible | Can be used with offline mobile if it is loaded at the top of the form. |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
FeedbackCopy link to clipboard
Was this page helpful?