{"id":65704,"library":"tr","title":"tr","description":"Provides the `tr!` macro for localisation and internationalization of Rust applications.","status":"active","version":"0.1.11","language":"rust","source_language":null,"source_url":"https://github.com/woboq/tr","tags":["localisation","i18n","macro","translation"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntr = \"0.1.11\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tr","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"tr","correct":"use tr::tr;"}],"quickstart":{"code":"use tr::tr;\n\nfn main() {\n    println!(\"{}\", tr!(\"Hello, world!\"));\n}","lang":"rust","description":"Use the tr! macro to translate a string."},"warnings":[{"fix":"Ensure translation files are loaded before calling tr!.","message":"Requires translation files to be set up; macro panics if no translation found.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'applic':12 'i18n':14 'internation':9 'localis':7,13 'macro':5,15 'provid':2 'rust':11 'tr':1,4 'translat':16","created_at":"2026-06-17T17:13:51.872935+00:00","updated_at":"2026-06-17T17:13:51.872935+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/woboq/tr","github":"https://github.com/woboq/tr","docs":"https://docs.rs/tr/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}