[][src]Function rtr::rtr

pub fn rtr(text: &str) -> String

Use with every str that you need to translate

Examples

extern crate rtr;
use rtr::rtr;
 
rtr::init("fr");
println!("{}", rtr("hello world"));

Will return the sentence that correspond to "hello world" in the ./lang/fr.txt file