World of Warcraft Forever API · Locale.md, for your AI
Locale (global functions)
5 functions, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
GetAvailableLocaleInfo
localeInfos = GetAvailableLocaleInfo([ignoreLocaleRestrictions])
Arguments
ignoreLocaleRestrictions | bool default false |
|---|
Returns
localeInfos | LocaleInfo[] |
|---|
GetAvailableLocales
localeName = GetAvailableLocales([ignoreLocaleRestrictions])
Arguments
ignoreLocaleRestrictions | bool default false |
|---|
Returns
localeName | cstring |
|---|
GetCurrentRegion
region = GetCurrentRegion()
Returns
region | number |
|---|
GetLocale
localeName = GetLocale()
Returns
localeName | cstring |
|---|
GetOSLocale
localeName = GetOSLocale()
Returns
localeName | cstring |
|---|
Tables
LocaleInfo structure
localeId | number | |
|---|---|---|
localeName | cstring |