We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b44e91 commit efbfe40Copy full SHA for efbfe40
1 file changed
.github/scripts/update_languages.py
@@ -19,11 +19,12 @@ def load_file(path):
19
total = len(english) # numero totale righe di riferimento
20
for fname in FILES:
21
other = load_file(os.path.join("lpak", fname))
22
- # Conta solo se la chiave esiste ed è non vuota
23
- translated = sum(1 for k in english if k in other and other[k].strip())
+ # Conta quante chiavi del file inglese esistono anche nel file tradotto (senza controllare se vuote)
+ translated = sum(1 for k in english if k in other)
24
percent = round((translated / total) * 100, 2) if total else 0
25
results[fname.replace(".lpak", "")] = percent
26
27
+
28
# Costruisce tabella Markdown
29
table = ["| Language | Coverage |", "|----------|----------|"]
30
for lang, perc in sorted(results.items()):
0 commit comments