Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 678 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 678 Bytes

GNUplusAdventure

A GNU gettext wrapper library for net.kyori.adventure.

Usage

Add the GettextTranslator as a source to the GlobalTranslator by writing:

GlobalTranslator.translator().addSource(com.minersstudios.gnuplusadventure.GettextTranslator);

Then use the appropriate translate() method to get translations from the resource bundle named like Locale.toString()'s output. If none is found, key will be returned unchanged. Thus, keys are the English/ASCII version of the messages and remove the need for a plugin developer to use the fallback mechanism provided by the net.kyori.adventure.text package.