Registry / utility / tr
library0.1.11rscratesunverified

Provides the `tr!` macro for localisation and internationalization of Rust applications.

# Cargo.toml [dependencies] tr = "0.1.11"
INSTALL
IMPORT
SIG · TR
T
tr
utilityrustv0.1.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tr
✓ use tr::tr;

Use the tr! macro to translate a string.

use tr::tr; fn main() { println!("{}", tr!("Hello, world!")); }
Debug
Known issues
gotchaRequires translation files to be set up; macro panics if no translation found.
fix
Ensure translation files are loaded before calling tr!.
affects: >=0.1.0
Upgrade
Version history
0.1.11latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
tr — cargo add tr · libregistry