Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .scripts/chatgpt_translate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

WORK_DIR=.scripts
cd $WORK_DIR

source utils/install_poetry.sh

TEMP=tmp.po
TARGET=../$2

poetry lock
poetry install
poetry run bash -c "
python google_translate/main.py $2 $TARGET $3 > $TEMP
pomerge -t $TARGET -i $TEMP -o $TARGET
"
rm $TEMP
1 change: 1 addition & 0 deletions .scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python = "^3.10"
polib = "1.1.1"
googletrans = "3.1.0a0"
translate-toolkit = "3.8.1"
requests = "2.31.0"


[build-system]
Expand Down