添加把项目翻译为任意语言的功能(测试)
This commit is contained in:
parent
e62c0b30ae
commit
76e0452619
@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Translate this project to Other languages
|
Translate this project to other languages
|
||||||
Usage:
|
Usage:o
|
||||||
1. modify LANG
|
1. modify LANG
|
||||||
LANG = "English"
|
LANG = "English"
|
||||||
|
|
||||||
@ -24,14 +24,14 @@ import time
|
|||||||
CACHE_FOLDER = "gpt_log"
|
CACHE_FOLDER = "gpt_log"
|
||||||
blacklist = ['multi-language', 'gpt_log', '.git', 'private_upload', 'multi_language.py']
|
blacklist = ['multi-language', 'gpt_log', '.git', 'private_upload', 'multi_language.py']
|
||||||
|
|
||||||
LANG = "TraditionalChinese"
|
# LANG = "TraditionalChinese"
|
||||||
TransPrompt = f"Replace each json value `#` with translated results in Traditional Chinese, e.g., \"原始文本\":\"翻譯後文字\". Keep Json format. Do not answer #."
|
# TransPrompt = f"Replace each json value `#` with translated results in Traditional Chinese, e.g., \"原始文本\":\"翻譯後文字\". Keep Json format. Do not answer #."
|
||||||
|
|
||||||
# LANG = "Japanese"
|
# LANG = "Japanese"
|
||||||
# TransPrompt = f"Replace each json value `#` with translated results in Japanese, e.g., \"原始文本\":\"テキストの翻訳\". Keep Json format. Do not answer #."
|
# TransPrompt = f"Replace each json value `#` with translated results in Japanese, e.g., \"原始文本\":\"テキストの翻訳\". Keep Json format. Do not answer #."
|
||||||
|
|
||||||
# LANG = "English"
|
LANG = "English"
|
||||||
# TransPrompt = f"Replace each json value `#` with translated results in English, e.g., \"原始文本\":\"TranslatedText\". Keep Json format. Do not answer #."
|
TransPrompt = f"Replace each json value `#` with translated results in English, e.g., \"原始文本\":\"TranslatedText\". Keep Json format. Do not answer #."
|
||||||
|
|
||||||
|
|
||||||
if not os.path.exists(CACHE_FOLDER):
|
if not os.path.exists(CACHE_FOLDER):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user