//! End-to-end test for recursive localization support in the `l10n_embed_derive` macro
modcommon;usecommon::compare_message;useicu_locale::locale;usel10n_embed_derive::localize;#[localize("tests/locale/**/basic.ftl")]pubstructTitle{name: String,
}#[localize("tests/locale/**/basic.ftl")]pubstructPraise{name: Title,
}#[localize("tests/locale/**/basic.ftl")]pubstructGreeting{name: Praise,
}#[test]fnonce(){let name = Title {
name:String::from("Ferris"),};compare_message(
Praise { name },"the Excellent Ferris the crab",locale!("en-US"),)}#[test]fntwice(){let name = Praise {
name: Title {
name:String::from("Ferris"),},};compare_message(
Greeting { name },"Hello, the Excellent Ferris the crab!",locale!("en-US"),)}