From 3c764b427bda59db3a2f27e3f227d6aebe052ec2 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 8 Jun 2025 22:19:29 +0200 Subject: grit: Keep part when expanding Makes it possible to still keep track of which file a string comes from. --- server/src/trans.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/src/trans.rs') diff --git a/server/src/trans.rs b/server/src/trans.rs index dcef078..6a18e27 100644 --- a/server/src/trans.rs +++ b/server/src/trans.rs @@ -78,9 +78,8 @@ fn push_strings( grit::IfMessagePart::If { expr: _, message } => { push_strings(strings, file, message); } - grit::IfMessagePart::Part(_) => { - // There should be none of these as we use parse_grit_with_parts - assert!(false); + grit::IfMessagePart::Part { file, messages } => { + push_strings(strings, &file, messages); } } } -- cgit v1.2.3-70-g09d2