GetAvailableLocales

From Warcraft Wiki
Jump to navigation Jump to search

Returns the available locale strings.

locale1, locale2, ... = GetAvailableLocales([ignoreLocalRestrictions])

Arguments

ignoreLocalRestrictions
boolean? - If true, returns the complete list of locales.

Returns

locale1, locale2, ...
string

Example

/dump GetAvailableLocales() -- "enUS", "esMX", "ptBR" (on a US server)
/dump GetAvailableLocales(true) -- "enUS", "koKR", "frFR", "deDE", "zhCN", "esES", "zhTW", "esMX", "ruRU", "ptBR", "itIT"