Skip to content

Java bindings for the Project Fluent Rust implementation (fluent-rs).

License

Notifications You must be signed in to change notification settings

JohnnyJayJay/javidaloca

Repository files navigation

javidaloca

WIP Java bindings for the Project Fluent Rust implementation.

TODO

  • Mirror basic API
  • Add Java API for custom types
  • Add Java API for custom functions
  • Setup proper gradle/cargo workflow
  • Write javadoc
  • Resolve fluent-rs issue #172

Usage

FluentBundle bundle = FluentBundle.create(Locale.US);
bundle.addResource("score = { $name } scores { $points } points! Yay!", false);
FluentArgs args = FluentArgs.create()
    .insert("name", "Johnny")
    .insert("points", 27.5);
String message = bundle.formatMessage("score", args).orElse("Message not found...");
System.out.println(message); // => Johnny scores 27.5 points! Yay!

See

About

Java bindings for the Project Fluent Rust implementation (fluent-rs).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published