Crates.io | rosetta-i18n |
lib.rs | rosetta-i18n |
version | 0.1.3 |
source | src |
created_at | 2021-10-17 16:05:44.269497 |
updated_at | 2023-06-23 14:24:36.763993 |
description | Easy to use i18n library based on code generation. |
homepage | https://baptiste0928.github.io/rosetta/ |
repository | https://github.com/baptiste0928/rosetta |
max_upload_size | |
id | 466273 |
size | 21,868 |
rosetta-i18n is an easy-to-use and opinionated Rust internationalization (i18n) library powered by code generation.
rosetta_i18n::include_translations!();
println!(Lang::En.hello("world")); // Hello, world!
Rosetta is separated into two crates, rosetta-i18n
and rosetta-build
. To install both, add the following to your Cargo.toml
:
[dependencies]
rosetta-i18n = "0.1"
[build-dependencies]
rosetta-build = "0.1"
The documentation is available on https://baptiste0928.github.io/rosetta/.
You can also read the API documentation on docs.rs: rosetta-i18n
and rosetta-build
.
There is no particular contribution guidelines, feel free to open a new PR to improve the code. If you want to introduce a new feature, please create an issue before.