WoW API: GetLanguageByIndex

From AddOn Studio
Jump to navigation Jump to search

WoW API < GetLanguageByIndex

Returns the language specified by the index that your character can speak.

Language = GetLanguageByIndex(index)

Parameters[edit]

Arguments[edit]

index
index
Numeric - The index starting at 1.

Returns[edit]

Language
Language
String - Returns the language specified by the index that your character can speak.

Example[edit]

for x=1, GetNumLanguages() do
  DEFAULT_CHAT_FRAME:AddMessage(GetLanguageByIndex(x))
end

See also[edit]