@serenity-is/corelib / tryGetText
Function: tryGetText()
tryGetText(
key):string
Defined in: src/base/localtext.ts:67
Tries to retrieve a localized string without falling back to the key.
Parameters
key
string
Localization key to look up.
Returns
string
The localized value if found, otherwise undefined (unlike localText which returns the key).