mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
Format the gap-report test
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8
This commit is contained in:
1 file changed
+7
-2
@@ -615,12 +615,17 @@ mod tests {
|
||||
let missing: Vec<&&str> = labels[..ui_labels].iter().filter(|label| !catalog.contains_key(**label)).collect();
|
||||
let notes = labels[ui_labels..].iter().filter(|label| !catalog.contains_key(**label)).count();
|
||||
if !missing.is_empty() || notes > 0 {
|
||||
eprintln!("{} lacks {} display label(s) (shown in English): {missing:?}; and {notes} What's New line(s)", language.code(), missing.len());
|
||||
eprintln!(
|
||||
"{} lacks {} display label(s) (shown in English): {missing:?}; and {notes} What's New line(s)",
|
||||
language.code(),
|
||||
missing.len()
|
||||
);
|
||||
}
|
||||
}
|
||||
// the German catalog, which set out to cover them all, still covers every other catalog
|
||||
let german = Locale::De.catalog();
|
||||
let gaps: Vec<&String> = Locale::ALL.iter().flat_map(|language| language.catalog().keys()).filter(|key| !german.contains_key(key.as_str())).collect();
|
||||
let gaps: Vec<&String> =
|
||||
Locale::ALL.iter().flat_map(|language| language.catalog().keys()).filter(|key| !german.contains_key(key.as_str())).collect();
|
||||
if !gaps.is_empty() {
|
||||
eprintln!("de lacks {} message(s) another catalog has: {gaps:?}", gaps.len());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user