Add translation keys
TheFaser opened this issue · 2 comments
TheFaser commented
How about adding two new objects translateTitle and translateDescription to the AdvancementInfo class, which will serve for TranslatableComponent?
I already use your code and I want to say thank you very much for it, but I had to modify it to get the important keys for translation
Object rawTitle = NMSUtil.getObject(display, "a");
Object rawDesc = NMSUtil.getObject(display, "b");
translateTitle = String.valueOf(NMSUtil.getObject(NMSUtil.getObject(rawTitle, "b"), "a"));
translateDesc = String.valueOf(NMSUtil.getObject(NMSUtil.getObject(rawDesc, "b"), "a"));
CroaBeast commented
Sorry for the late response, having personal issues. What's the TranslatableComponent object?