A translation tool that retrieves the messages stored in yaml files used by Kalgan Framework.
This is the yaml file to be used in the following tests: ```yaml
hello:
world: Hello World!
somebody: Hello {user}!
rust
use kalgan_i18n::Messages;
let messages: Messages = Messages::new("tests");
rust
asserteq!(messages.trans("en", "hello.world", HashMap::new()), "Hello World!");
rust
let mut parameters = HashMap::new();
parameters.insert("user", "John".tostring());
assert_eq!(messages.trans("en", "hello.somebody", parameters), "Hello John!");
```
For further information please visit:
This crate is licensed under either of the following licenses: