1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #28909 -- Simplified code using unpacking generalizations.

This commit is contained in:
Aarni Koskela
2025-03-05 18:45:10 +02:00
committed by nessita
parent 6888375c53
commit c972af69e2
40 changed files with 77 additions and 72 deletions

View File

@@ -235,13 +235,13 @@ def fetch(resources=None, languages=None):
]
# Transifex pull
if languages is None:
run(cmd + ["--all"])
run([*cmd, "--all"])
target_langs = sorted(
d for d in os.listdir(dir_) if not d.startswith("_") and d != "en"
)
else:
for lang in languages:
run(cmd + ["-l", lang])
run([*cmd, "-l", lang])
target_langs = languages
target_langs = [LANG_OVERRIDES.get(d, d) for d in target_langs]