add i18n translations

This commit is contained in:
杨黄林
2023-09-25 22:44:51 +08:00
parent 7310e1117c
commit cd5109e5f1
9 changed files with 93 additions and 68 deletions

View File

@@ -16,7 +16,7 @@ var loadClientInfo = (function ($) {
type: 'none'
}).done(function (result) {
if (result.success) {
renderCommonInfo(result.data);
renderClientInfo(result.data);
} else {
layui.layer.msg(result.message);
}
@@ -25,7 +25,7 @@ var loadClientInfo = (function ($) {
});
}
function renderCommonInfo(data) {
function renderClientInfo(data) {
data.tcp_mux = i18n[data.tcp_mux];
data.tls_enable = i18n[data.tls_enable];
var html = layui.laytpl($('#clientInfoTemplate').html()).render(data);