mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-30 20:06:30 +01:00
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:
parent
6d0f8c2559
commit
e806844980
10
.github/scripts/sync_translations.py
vendored
10
.github/scripts/sync_translations.py
vendored
@ -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 = (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user