API GetLanguageByIndex

From Wowpedia
Jump to: navigation, search

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

language, languageID = GetLanguageByIndex(index)

Parameters

Arguments

index
index 
Numeric - The index starting at 1.

Returns

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

Example

for i = 1, GetNumLanguages() do
  print(GetLanguageByIndex(i))
end

See also