Converted tabs to spaces and fixed tests

This commit is contained in:
ElBe
2023-09-14 17:08:58 +02:00
parent 49a2b13657
commit 66363879c8
3 changed files with 82 additions and 81 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
use localizer_rs;
fn main() {
let config: localizer_rs::Config = localizer_rs::Config::new("translations", "en");
let config: localizer_rs::Config = localizer_rs::Config::new("translations", "en");
println!("{:}", config.t("error", vec![("details", "Something went wrong when trying to do stuff")]));
println!("{:}", config.t("success", vec![("balance", "$10"), ("user", "John Doe")]));
println!("{:}", config.t("error", vec![("details", "Something went wrong when trying to do stuff")]));
println!("{:}", config.t("success", vec![("balance", "$10"), ("user", "John Doe")]));
println!("{:}", config.t("all", vec![]));
}
println!("{:}", config.t("all", vec![]));
}