Skip to main content

localize

Attribute Macro localize 

Source
#[localize]
Expand description

Usage

use interly::localize;

#[localize]
pub(crate) struct Localize;

assert_eq!(tr!(hello_world, "en", "your name"), "Hello, your name!".to_string());
assert_eq!(tr_literal!("hello-world", "en"), "Hello, world!".to_string());

Arguments in tr_literal! currently not supported