Skip to content

Add translation keys #6

@TheFaser

Description

@TheFaser

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"));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions