qingxu99 commited on
Commit
b7e0822
1 Parent(s): e38e6e2

add user explaination

Browse files
Files changed (1) hide show
  1. multi_language.py +16 -0
multi_language.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import os
2
  import json
3
  import functools
 
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 translated program in `multi-language\English\*`
14
+
15
+ """
16
+
17
  import os
18
  import json
19
  import functools