添加多语言最基础代码

This commit is contained in:
GoEdgeLab
2023-06-28 09:14:07 +08:00
parent f29ad86b67
commit 97fe91c7b0
16 changed files with 172 additions and 70 deletions

View File

@@ -185,6 +185,16 @@ Tea.context(function () {
width: "54em"
})
}
this.LANG = function (code) {
if (window.LANG_MESSAGES != null) {
let message = window.LANG_MESSAGES[code]
if (typeof message == "string") {
return message
}
}
return "{{ LANG('" + code + "') }}"
}
});
window.NotifySuccess = function (message, url, params) {