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.culture.translate(string culture, string text)
string locale.culture.translate(string culture, string text, any[ ] args)

Parameters

Name Data Type Description
culture String The culture code of the desired localization culture.
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