Spaces:
Sleeping
Sleeping
update note
Browse files- multi_language.py +8 -8
multi_language.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
"""
|
2 |
Translate this project to other languages
|
3 |
-
Usage:
|
4 |
-
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
|
9 |
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
|
14 |
|
15 |
"""
|
16 |
|
|
|
1 |
"""
|
2 |
Translate this project to other languages
|
3 |
+
Usage:
|
4 |
+
1. modify LANG
|
5 |
+
LANG = "English"
|
6 |
|
7 |
+
2. modify TransPrompt
|
8 |
+
TransPrompt = f"Replace each json value `#` with translated results in English, e.g., \"原始文本\":\"TranslatedText\". Keep Json format. Do not answer #."
|
9 |
|
10 |
+
3. Run `python multi_language.py`.
|
11 |
+
Note: You need to run it multiple times to increase translation coverage because GPT makes mistakes sometimes.
|
12 |
|
13 |
+
4. Find the translated program in `multi-language\English\*`
|
14 |
|
15 |
"""
|
16 |
|