新语言:机翻

语言模块升级
支持更自由地添加语言(不再使用语言序号)
给getTip设置metatable的代码移出模块
This commit is contained in:
MrZ626
2021-09-20 20:25:17 +08:00
parent 493fcb2f05
commit 7393b3c716
14 changed files with 1053 additions and 107 deletions

View File

@@ -57,7 +57,7 @@ local function _search()
end
function scene.sceneInit()
dict=require("parts.language.dict_"..({"zh","zh","zh","en","en","en","en","en"})[SETTING.lang])
dict=require("parts.language.dict_"..(SETTING.locale:find'zh'and'zh'or'en'))
inputBox:clear()
result={}