use localize::Localizer; #[allow(unused)] fn main() { simple_logger::SimpleLogger::default().init().unwrap(); let mut locale = Localizer::new("locales/") .debug(true) .default_locale("en"); { let str = String::from("es"); // There are methods that don't requere mutability. let output = locale.localize_no_cache(&str).unwrap(); dbg!(output); // output = { "welcome": "Hello, World!" } } }