WowAddons

World of Warcraft Forever API · Localization.md, for your AI

Localization (global functions)

11 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

AbbreviateLargeNumbers

result = AbbreviateLargeNumbers(number, [options])

Arguments

numbernumber
optionsNumberAbbrevOptions may be nil

Returns

resultstring

AbbreviateNumbers

result = AbbreviateNumbers(number, [options])

Arguments

numbernumber
optionsNumberAbbrevOptions may be nil

Returns

resultstring

BreakUpLargeNumbers

result = BreakUpLargeNumbers(largeNumber, [natural])

Arguments

largeNumbernumber
naturalbool default false

Returns

resultstring

CaseAccentInsensitiveParse

result = CaseAccentInsensitiveParse(name)

Arguments

namecstring

Returns

resultstring

CreateAbbreviateConfig

config = CreateAbbreviateConfig(data)

Arguments

dataNumberAbbreviationBreakpoint[]

Returns

configAbbreviateConfig

DeclineName

declinedNames = DeclineName(name, [gender], declensionSet, [namePartType])

Arguments

namecstring
genderUnitSex may be nil
declensionSetluaIndex
namePartTypeNamePartType may be nil

Returns

declinedNamesstring

GetDefaultAbbreviationBreakpoints

breakpoints = GetDefaultAbbreviationBreakpoints([locale])

Arguments

localeWowLocale may be nil

Returns

breakpointsNumberAbbreviationBreakpoint[]

GetNumDeclensionSets

numDeclensionSets = GetNumDeclensionSets(name, [gender], [namePartType])

Arguments

namecstring
genderUnitSex may be nil
namePartTypeNamePartType may be nil

Returns

numDeclensionSetsnumber

IsEuropeanNumbers

enabled = IsEuropeanNumbers()

Returns

enabledbool

LocalizedClassList

result = LocalizedClassList([isFemale])

Arguments

isFemalebool default false

Returns

resultLuaValueVariant

SetEuropeanNumbers

SetEuropeanNumbers(enabled)

Arguments

enabledbool

Tables

NumberAbbrevOptions structure

breakpointDataNumberAbbreviationBreakpoint[] may be nilOrder these from largest to smallest.
localecstring may be nilLocale controls whether standard asian abbreviation data will be used along with a small change in behavior for large number abbreviation when fractionDivisor is greater than zero.
configAbbreviateConfig may be nilProvides a cached config object for optimal performance when calling abbreviation functions multiple times with the same options.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows