resource() Function
This function may not be compatible with all features of Appian. For details, see the Feature Compatibility section below.

Function

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.

Parameters

Keyword Type Description

key

Text

The item paired with each desired translation in your resource bundle.

Returns

Text

Usage considerations

If no matching translation is available for the user's locale, the key itself is returned.

Examples

resource("city") returns ciudad for es_MX and ville for fr_CA

Feature compatibility

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.

Custom Record Field Expressions Compatible
Open in Github Built: Fri, Aug 12, 2022 (10:01:45 AM)

On This Page

FEEDBACK