Framework for embedding localizations into Rust types