World of Warcraft Forever API · LocalizationShared.md, for your AI
LocalizationShared (types and enums)
3 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.
Tables
Enum.AbbreviationDataError enumeration
InvalidBreakpoint | 1 |
|---|---|
InvalidSignificandDivisor | 2 |
InvalidFractionDivisor | 4 |
NotMultipleOfTen | 8 |
Enum.NamePartType enumeration
Firstname | 0 |
|---|---|
Surname | 1 |
Combined | 2 |
NumberAbbreviationBreakpoint structure
breakpoint | number | Breakpoints should generally be specified as pairs, with one at the named order (1,000) with fractionDivisor = 10, and one a single order higher (eg. 10,000) with fractionDivisor = 1., This ruleset means numbers like '1234' will be abbreviated to '1.2k' and numbers like '12345' to '12k'. |
|---|---|---|
abbreviation | string | Abbreviation name to be looked up as a global string. |
significandDivisor | number | significandDivisor and fractionDivisor should multiply such that they become equal to a named order of magnitude, such as thousands or millions. |
fractionDivisor | number | |
abbreviationIsGlobal | bool default true | Defaults to true. Set to false to skip the global string lookup and use the raw abbreviation string when formatting results |