From 76e0452619626347921c2854079d57ae77ef4089 Mon Sep 17 00:00:00 2001 From: binary-husky <96192199+binary-husky@users.noreply.github.com> Date: Sat, 20 May 2023 13:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8A=8A=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E4=B8=BA=E4=BB=BB=E6=84=8F=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD=EF=BC=88=E6=B5=8B=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- multi_language.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/multi_language.py b/multi_language.py index 591cfa9..40a3124 100644 --- a/multi_language.py +++ b/multi_language.py @@ -1,6 +1,6 @@ """ - Translate this project to Other languages - Usage: + Translate this project to other languages + Usage:o 1. modify LANG LANG = "English" @@ -24,14 +24,14 @@ import time CACHE_FOLDER = "gpt_log" blacklist = ['multi-language', 'gpt_log', '.git', 'private_upload', 'multi_language.py'] -LANG = "TraditionalChinese" -TransPrompt = f"Replace each json value `#` with translated results in Traditional Chinese, e.g., \"原始文本\":\"翻譯後文字\". Keep Json format. Do not answer #." +# LANG = "TraditionalChinese" +# TransPrompt = f"Replace each json value `#` with translated results in Traditional Chinese, e.g., \"原始文本\":\"翻譯後文字\". Keep Json format. Do not answer #." # LANG = "Japanese" # TransPrompt = f"Replace each json value `#` with translated results in Japanese, e.g., \"原始文本\":\"テキストの翻訳\". Keep Json format. Do not answer #." -# LANG = "English" -# TransPrompt = f"Replace each json value `#` with translated results in English, e.g., \"原始文本\":\"TranslatedText\". Keep Json format. Do not answer #." +LANG = "English" +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): @@ -496,4 +496,4 @@ def step_2_core_key_translate(): os.remove(file_path) step_1_core_key_translate() -step_2_core_key_translate() \ No newline at end of file +step_2_core_key_translate()