You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The following rewards have been sent to your backpack.".to_string(),
647
+
Item{
648
+
localizations:HashMap::new(),
649
+
comment:Some("Text displayed in the tips view of the return user reward dialog, describing the rewards that have been sent to the user's backpack.".to_string()),
650
+
extraction_state:None,
651
+
should_translate:None,
652
+
is_comment_auto_generated:Some(true),
653
+
},
654
+
);
655
+
let format = Format{
656
+
source_language:"en".to_string(),
657
+
version:"1.0".to_string(),
658
+
strings,
659
+
};
660
+
661
+
let resources = Vec::<Resource>::try_from(format).expect("resources from xcstrings");
662
+
let roundtrip = Format::try_from(resources).expect("xcstrings from resources");
663
+
let key = "The following rewards have been sent to your backpack.";
664
+
let item = roundtrip.strings.get(key).expect("reward tip item exists");
665
+
666
+
assert!(item.localizations.is_empty());
667
+
assert_eq!(
668
+
item.comment.as_deref(),
669
+
Some("Text displayed in the tips view of the return user reward dialog, describing the rewards that have been sent to the user's backpack.")
0 commit comments