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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy