Formatted files

This commit is contained in:
ElBe
2023-09-14 19:15:40 +02:00
parent 6fd9e66ce8
commit e18a62267f
4 changed files with 59 additions and 27 deletions
+11 -2
View File
@@ -3,8 +3,17 @@ use localizer_rs;
fn main() {
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![]));
}