Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66820a5

Browse files
committed
Extend instead of append list for locale arg
1 parentadf715c commit66820a5

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
iflocale!="":
71-
cmd.append(["-l",locale])
71+
cmd.extend(["-l",locale])
7272
subprocess.run(cmd,check=True)
7373

7474

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

8282

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp