User blog comment:LadyAlys/HabitRPG Unofficial User Data Display/@comment-24459124-20140514184232/@comment-24150802-20140515193708

Yeah, to fix the equipment names, I copied the "events", "mystery", and "gear" objects from dist/habitrpg-shared.js and dropped them into my script (which will be up on github any minute now). I didn't want to copy and use the entire dist/habitrpg-shared.js file because there's a lot of other stuff in there including dependencies. Those three objects will need to be updated when new gear is added (every month at a minimum) but it won't be critically urgent because the code now gracefully handles missing items (it reports the "key" as the name, so you would see "back_mystery_201405"). I'll likely change the code a bit so that I can put those objects in their own small js file, and import it from the main one. That will make the monthly updates easier.

I also copied the entire locales/en/gear.json file to oldgods.net and to localhost, but I'm wanting to find a way to just read that directly from github or HabitRPG, if at all possible.

The "events", "mystery", and "gear" objects are needed only to convert the equipment keys (weapon_warrior_1) into locale texts (weaponWarrior1Text). I did consider asking if the locale texts could be added to data received from the API's "get /content" call, but I didn't like the idea of duplicating information just to make my programming easier.