Wikia

WoWWiki

Watchlist Recent changes

API GetLocale

Main Menue



Returns information about the client locale.

locale = GetLocale();

Description Edit

The locale is what makes it possible to know what language the interface is using and thus determine which specific code is going to be executed in a localized addon.

Typically, this is used in a GetLocale block:

Example Edit

if (GetLocale() == "frFR") then
    -- things for the french client
else
    -- for the rest, usually english since it's the default language
end

Known results Edit

"frFR": French
"deDE": German
"enUS": American english (what should be "enGB" clients return "enUS", too)
"koKR": Korean
"zhCN": Chinese (simplified)
"zhTW": Chinese (traditional)
"ruRU": Russian (UI AddOn)
"esES": Spanish (Spain)
"esMX": Spanish (Mexico)

Pages on WoWWiki

94,145pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,609photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki