Skip to content

Commit fda0495

Browse files
Fix update translations action
1 parent a8521e0 commit fda0495

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

generate_translation_status.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
status_lines.append(f"| {lang} | {total} | {untranslated} | {percent}% |")
1414

1515
# Write to the wiki file (replace the table section)
16+
1617
import re
17-
wiki_path = "cwa-wiki/Contributing-Translations.md"
18+
import sys
19+
wiki_path = sys.argv[1] if len(sys.argv) > 1 else "wiki-tmp/Contributing-Translations.md"
1820
with open(wiki_path, "r", encoding="utf-8") as f:
1921
content = f.read()
2022

0 commit comments

Comments
 (0)