/okaeri-i18n

Simple yet powerful localization library built with blazing-fast okaeri-placeholders

Primary LanguageJavaMIT LicenseMIT

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