8000 Extend instead of append list for locale arg · AA-Turner/python-docs-theme@66820a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66820a5

Browse files
committed
Extend instead of append list for locale arg
1 parent adf715c commit 66820a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

babel_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ def update_catalogs(locale: str):
6868
"""Update translations from existing message catalogs"""
6969
cmd = ["pybabel", "update", "-i", POT_FILE, "-d", LOCALES_DIR]
7070
if locale != "":
71-
cmd.append(["-l", locale])
71+
cmd.extend(["-l", locale])
7272
subprocess.run(cmd, check=True)
7373

7474

7575
def compile_catalogs(locale: str):
7676
"""Compile existing message catalogs"""
7777
cmd = ["pybabel", "compile", "-d", LOCALES_DIR]
7878
if locale != "":
79-
cmd.append(["-l", locale])
79+
cmd.extend(["-l", locale])
8080
subprocess.run(cmd, check=True)
8181

8282

0 commit comments

Comments
 (0)
0