fluent 0.4.1

A localization library designed to unleash the entire expressive power of natural language translations.
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate fluent;

use fluent::bundle::FluentBundle;

fn main() {
    let mut bundle = FluentBundle::new(&["en-US"]);
    bundle.add_messages("hello-world = Hello, world!").unwrap();
    let (value, _) = bundle.format("hello-world", None).unwrap();
    assert_eq!(&value, "Hello, world!");
}