Easy to use I18n for Rust
Go to file
Terry Raimondo 67e3b1eeec Bump
2019-10-03 13:57:05 +02:00
src Simple implementation 2019-10-03 13:56:43 +02:00
.gitignore Base files 2019-10-03 10:56:22 +02:00
Cargo.toml Bump 2019-10-03 13:57:05 +02:00
LICENSE-APACHE Base files 2019-10-03 10:56:22 +02:00
LICENSE-MIT Base files 2019-10-03 10:56:22 +02:00
README.md Simple implementation 2019-10-03 13:56:43 +02:00

Internationalization

An simple i18n implementation in Rust.

API documentation https://crates.io/crates/internationalization

Usage

use internationalization::{init_i18n, t};
fn main() {
    init_i18n!("locales/*.json", "fr", "en");

    let res = t("err.not_allowed");
    assert_eq!("You are not allowed to do this", res);
}