# Locale (global functions): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/Locale

## Functions

### GetAvailableLocaleInfo

```lua
localeInfos = GetAvailableLocaleInfo([ignoreLocaleRestrictions])
```

Arguments:
- `ignoreLocaleRestrictions`: bool, default false

Returns:
- `localeInfos`: LocaleInfo[]

### GetAvailableLocales

```lua
localeName = GetAvailableLocales([ignoreLocaleRestrictions])
```

Arguments:
- `ignoreLocaleRestrictions`: bool, default false

Returns:
- `localeName`: cstring

### GetCurrentRegion

```lua
region = GetCurrentRegion()
```

Returns:
- `region`: number

### GetLocale

```lua
localeName = GetLocale()
```

Returns:
- `localeName`: cstring

### GetOSLocale

```lua
localeName = GetOSLocale()
```

Returns:
- `localeName`: cstring

## Tables

### LocaleInfo (structure)

- `localeId`: number
- `localeName`: cstring

---
Make an addon with your 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."
