Component LookupText

Returns a (localized) string for a text key
;Usage
text = Component.LookupText(key [, ...])
Parameter	Type 	Description
key 	string 	the text key
... 	string, number	additional arguments for replacements in the returned string (depends on text key)
;Return Values
Value	Type 	Description
text 	string	(localized) text
;Examples:
<nowiki>
local text = Component.LookupText("LOGIN_INVALID_TOTP_ERR")
log(text)
--[[
Invalid Authentication Code,\nPlease check your code and try again.
]]
local time_string = Component.LookupText("TIME_IN_HOURS_AND_MINUTES", 1, 30)
log(time_string)
--[[
1h 30m
]]
</nowiki>
Category:Addon_API