Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetLocale
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}}Returns information about the client locale. locale = GetLocale(); == Description == 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 == <pre> if (GetLocale() == "frFR") then -- things for the french client else -- for the rest, usually english since it's the default language end </pre> == Locales == * "frFR": French (France) * "deDE": German (Germany) * "enGB": English (Great Britain) ''if returned, can substitute 'enUS' for consistancy'' * "enUS": English (America) * "itIT": Italian (Italy) * "koKR": Korean (Korea) ''RTL - right-to-left'' * "zhCN": Chinese (China) (simplified) ''implemented LTR left-to-right in WoW'' * "zhTW": Chinese (Taiwan) (traditional) ''implemented LTR left-to-right in WoW'' * "ruRU": Russian (Russia) * "esES": Spanish (Spain) * "esMX": Spanish (Mexico) * "ptBR": Portuguese (Brazil)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)
Close
Loading editor…