Remove report messages for invalid ignore entries

Eliminates the addition of report messages when ignore entries reference missing reference keys, streamlining the reporting output in the translation sync script.
This commit is contained in:
Ludy87 2025-10-26 21:20:22 +01:00
parent 6d0f8c2559
commit e806844980
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -597,16 +597,6 @@ def main() -> None:
invalid_for_locale = invalid_ignore_entries.get(locale_key, [])
if invalid_for_locale:
if args.check or args.dry_run:
report.append(
"- Ignore entries referencing missing reference keys: "
+ f"`{', '.join(invalid_for_locale)}` (update `scripts/ignore_locales.toml`)"
)
else:
report.append(
"- Removed ignore entries referencing missing reference keys: "
+ f"`{', '.join(invalid_for_locale)}`"
)
ignored_paths -= set(invalid_for_locale)
stats, success, dupes, total_ref_leaves, translated_ignored_paths = (