Files
wow_Meta/api/GetText.lua
2025-05-04 15:15:00 +02:00

10 lines
592 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@meta
---@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