Fandom

WoWWiki

API GetExistingLocales

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetExistingLocales

Return a list of installed language packs.

lang1, lang2, ... = GetExistingLocales();

Returns Edit

lang1, lang2, ... 
String - Token identifying a language pack locale. For example: "enGB", "frFR", "enTW".

Details Edit

  • Currently loaded locale identifier is stored in the "locale" CVar.
  • Language pack tokens can be translated to a description by using an upper-cased version as a global variable name:
lang1 = GetExistingLocales();
print(_G[lang1:upper()]);

Also on Fandom

Random Wiki