更新翻译

This commit is contained in:
2022-12-06 09:38:01 +08:00
parent 51635cf2c0
commit ed39b338c9
9 changed files with 118 additions and 108 deletions

View File

@@ -6,6 +6,7 @@ import traceback
class Trans():
isTrans = False
unCloudTrans = True
word = {}
fileName = ""
@@ -29,6 +30,8 @@ class Trans():
try:
return self.word[text]
except:
if self.unCloudTrans:
return text
# 机翻
data = { 'doctype': 'json', 'type': 'auto','i': text}
jsonReturn = requests.post("http://fanyi.youdao.com/translate", data=data).json()["translateResult"]

View File

@@ -0,0 +1 @@
{"更换源": "Change the source", "Gitlink 源(推荐)": "Gitlink source (recommended)", "备用源(只支持 IPv6 用户)": "The alternate source (only support IPv6 users)", "本地测试源127.0.0.1": "Local test source (127.0.0.1)"}

File diff suppressed because one or more lines are too long