8000 fix(script): add poetry lock cmd to script and rm -q option when install · CTHua/python-docs-zh-tw@f9ca7db · GitHub
[go: up one dir, main page]

Skip to content

Commit f9ca7db

Browse files
committed
fix(script): add poetry lock cmd to script and rm -q option when install
1 parent ee50c42 commit f9ca7db

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.scripts/from_cn.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ TARGET=$1
2929
CN_PATH=$CN_REPO/$TARGET
3030
TW_PATH=../$TARGET
3131

32-
poetry install -q
32+
poetry lock
33+
poetry install
3334
poetry run bash -c "
3435
opencc -i $CN_PATH -c s2twp.json -o /tmp/tmp.po
3536
pofilter --nonotes --excludefilter unchanged --excludefilter untranslated /tmp/tmp.po | msgattrib --set-fuzzy -o /tmp/tmp.po

.scripts/google_translate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ source utils/install_poetry.sh
88
TEMP=tmp.po
99
TARGET=../$1
1010

11-
poetry install -q
11+
poetry lock
12+
poetry install
1213
poetry run bash -c "
1314
python google_translate/main.py $TARGET > $TEMP
1415
pomerge -t $TARGET -i $TEMP -o $TARGET

0 commit comments

Comments
 (0)
0