Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.31 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.31 KB

Okaeri Messages (okaeri-i18n)

License Total lines Repo size Contributors Discord

Simple yet powerful localization library built with blazing-fast okaeri-placeholders. Part of the okaeri-platform.

Implementations

  • configs: based on okaeri-configs with support for accessing messages through getters (compile time key checking!)

Example

See full examples in the tests.

// example of manual transformation to String
this.i18n.get(sender, this.messages.getExampleMessage()).apply();
// example of fields use
this.i18n.get(sender, this.messages.getExampleMessage())
    .with("name", "John")
    .with("age", 123)
    .apply();