Given a string resource value for the neutral resource culture, returns the associated system string resource value localized for the current UI culture, if it exists, or null otherwise.

Syntax

Smartsite SXML CopyCode image Copy Code
string locale.translate(string text)
string locale.translate(string text, any[ ] args)

Parameters

Name Data Type Description
text String The string resource value in the neutral resource culture.
args Any[ ] An array containing zero or more arguments to format.

Return Value

Data Type Description
String The localized string resource value.

Expand image Example

SXML