Skip to content

Commit

Permalink
examples/app-tr: Add log-tr-dyn demos
Browse files Browse the repository at this point in the history
  • Loading branch information
varphone committed Jan 21, 2024
1 parent f43d0a9 commit 0a1476c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/app-tr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,13 @@ fn main() {
}
}
println!();

if cfg!(feature = "log-tr-dyn") {
println!("Runtime string missing with logging:");
for locale in &locales {
let msg = "Foo Bar".to_string();
println!("{:>8} => {} ({locale})", &msg, tr!(&msg, locale = locale));
}
println!();
}
}

0 comments on commit 0a1476c

Please sign in to comment.