LookupText

Get a text resource translation as defined in the current project.

Function

string LookupText(key: string)

Parameters

  • key (string): the unique key idenifying the text resource. If the text resource is not found an error is thrown.

Return Value

Returns a string containing the translation using the currently set language. The default language translation will be returned if no language has been set.

Example

Looks up a translation as defined in the current project and prints it to the console.

let translationText = SYM3.LookupText("key");
console.log("    Translation for text resource 'key' is = " + translationText);