Skip to main content

rtr

Function rtr 

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

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