mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Source the strings FormattingUtil/TimeUtil consume (LARGE_NUMBER_SEPERATOR, PERCENTAGE_STRING, GOLD/SILVER/COPPER_AMOUNT_SYMBOL, the time abbreviations + D_* + *_ONELETTER_ABBR, clock formats) from Classic Era enUS GlobalStrings and define them in locales/enUS.lua, which loads before the Util files. `or`-guarded so any value the 1.12 client already defines is preserved (the time abbrevs use |4 plural tokens, which 1.12 supports — our existing ITEMS_* strings already rely on |4). The Util files no longer define these (single source of truth in the locale layer); they retain only the non-locale numeric constants (COPPER_PER_*, SECONDS_PER_*) and the formatting logic. FormatUnit still inserts the count whether the unit string carries a %d or is a bare label.