Translation Library

Source | Discord | FlashLabs

  • Version: v0.1.1
  • Dependencies: None

The translation library provides a service for loading translations.

QuickStart

  • 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 a TranslationService.

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!

Category: Developer Tools

Published on Apr 6, 2020

views

stars

watchers

total downloads

Licensed under MIT

Promoted Versions

Members