Skip to content

Commit

Permalink
Fix list of untranslated files for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed May 3, 2024
1 parent c1fd0a2 commit 4b28bcf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/check_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def main():

source_filenames = [f.split(os.path.sep)[1] for f in source_files]

translated_files = [f for f in list(stats.keys()) if f in source_filenames]
translated_files = [
f for f in list(stats.keys()) if f in source_filenames and stats[f]["count"] > 0
]
translated_files.sort()

output = []
Expand All @@ -69,8 +71,7 @@ def main():
"List of translated files (number of locales between parentheses):"
)
for f in translated_files:
count = len(stats[f]["locales"])
output.append(f"* {f} ({count})")
output.append(f"* {f} ({stats[f]['count']})")

only_en_files = list(set(source_filenames) - set(stats.keys()))
only_en_files.sort()
Expand Down

0 comments on commit 4b28bcf

Please sign in to comment.