- Version:
v0.1.1
(Source) - Dependencies: None
The translation library provides a service for loading translatable messages via ResourceBundles.
- Note: Complete documentation is being worked on, and it will take us some
time to write everything out. If you have any questions, feel free to ask
in the
#flashlibs
channel on Discord
To create a TranslationService
, provide a name used for the resource bundle
and a path to the directory containing messages.
Path directory;
TranslationService translations = TranslationService.of("messages", path);
The Plugin library can automatically provide a
MessageService
for your plugin, which includes aTranslationService
.
The remaining documentation hasn't been written yet, but it should be feasible to piece together things using the javadocs. If you have any questions feel free to ask on Discord. If you'd like to help write documentation we would greatly appreciate it!