//! End-to-end test for recursive localization support in the `fluent_embed_derive` macro
modcommon;usecommon::compare_message;usefluent_embed::localize;useicu_locale::langid;#[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",langid!("en-US"),)}#[test]fntwice(){let name = Praise {
name: Title {
name:String::from("Ferris"),},};compare_message(
Greeting { name },"Hello, the Excellent Ferris the crab!",langid!("en-US"),)}