Skip to content

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

License

Notifications You must be signed in to change notification settings

OkaeriPoland/okaeri-i18n

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages