Files
wow-weakauras/Meta/api/GetText.lua
2024-11-07 23:12:37 +01:00

8 lines
593 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@param token string
---@param gender number
---@param ordinal number
---@return string text
---Returns a localized string according to given parameters. Applies to any global variable whose name fits a standard format: for example, GetText("foo") returns the value of the global variable foo (if it exists), and GetText("foo", 3) returns the value of foo_FEMALE (or if it does not exist, the value of foo). Causes a Lua error if the given variable does not exists (or is nil).
function GetText(token, gender, ordinal) end