translatable 1.0.0

A robust internationalization solution for Rust featuring compile-time validation, ISO 639-1 compliance, and TOML-based translation management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[allow(unused_imports)] // trybuild
use translatable::translation;

#[cfg(test)]
#[test]
pub fn pass_dynamic_expr() {
    let translation = translation!(
        "es".parse().expect("Expected language parsing to be OK"),
        static greetings::formal
    )
    .expect("Expected translation generation to be OK");

    assert_eq!(translation, "Bueno conocerte.");
}

#[allow(dead_code)]
fn main() {} // trybuild