mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #28909 -- Simplified code using unpacking generalizations.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user