Skip to content

Commit

Permalink
change locale
Browse files Browse the repository at this point in the history
  • Loading branch information
ttop32 committed Nov 30, 2024
1 parent 6d8bf60 commit 68a53d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions doc/insertLocale.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ def translate(text, lang):


def addBasicDescription(jsonDict, locale):
jsonDict["appName"] = {"message": appName}
# jsonDict["appName"] = {"message": appName}

if "appDesc" not in jsonDict:
jsonDict["appDesc"] = {"message": translate(appDesc, locale)}

if "appDesc" in jsonDict:
jsonDict["appDesc"] = {"message": jsonDict["appDesc"]["message"][:130]}
# if "appDesc" not in jsonDict:
# jsonDict["appDesc"] = {"message": translate(appDesc, locale)}

# if "appDesc" in jsonDict:
# jsonDict["appDesc"] = {"message": jsonDict["appDesc"]["message"][:130]}
pass

def getI18IdList():
return [getI18Id(i18) for i18 in i18List]
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
"message": "标题 "
},
"appName": {
"message": "Mouse Tooltip Translator - PDF & Youtube dual subs"
"message": "鼠标工具提示翻译器 - PDF 和 YouTube 双字幕"
},
"appDesc": {
"message": "鼠标工具提示转换器使用谷歌翻译翻译鼠标悬停文本。支持 OCR、TTS、漫画翻译和 PDF 翻译。"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
"message": "標題 "
},
"appName": {
"message": "Mouse Tooltip Translator - PDF & Youtube dual subs"
"message": "滑鼠工具提示翻譯器 - PDF 和 YouTube 雙字幕"
},
"appDesc": {
"message": "滑鼠工具提示轉換器使用谷歌翻譯翻譯滑鼠懸停文本。支持 OCR、TTS、漫畫翻譯和 PDF 翻譯。"
Expand Down

0 comments on commit 68a53d9

Please sign in to comment.