8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe7fe7 commit 7a5139dCopy full SHA for 7a5139d
.scripts/chatgpt_translate.sh
@@ -0,0 +1,17 @@
1
+#!/bin/sh
2
+
3
+WORK_DIR=.scripts
4
+cd $WORK_DIR
5
6
+source utils/install_poetry.sh
7
8
+TEMP=tmp.po
9
+TARGET=../$2
10
11
+poetry lock
12
+poetry install
13
+poetry run bash -c "
14
+ python google_translate/main.py $2 $TARGET $3 > $TEMP
15
+ pomerge -t $TARGET -i $TEMP -o $TARGET
16
+"
17
+rm $TEMP
.scripts/pyproject.toml
@@ -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]
0 commit comments