ref: add some translate (#13102)

This commit is contained in:
2026-06-24 18:23:23 +08:00
committed by GitHub
parent 9e518daa62
commit f67e1d897c
4 changed files with 11 additions and 4 deletions

View File

@@ -2049,6 +2049,7 @@ const message = {
nodes: 'Node',
commands: 'Quick Commands',
opsReport: 'Ops Report',
ops_report: 'Ops Report',
users: 'User Management',
roles: 'Role',
auth: 'Login Authentication',

View File

@@ -1932,6 +1932,7 @@ const message = {
nodes: '節點',
commands: '快速指令',
opsReport: '運維報表',
ops_report: '運維報表',
users: '使用者管理',
roles: '角色',
auth: '登入認證',

View File

@@ -1929,6 +1929,7 @@ const message = {
nodes: '节点',
commands: '快速命令',
opsReport: '运维报表',
ops_report: '运维报表',
users: '用户管理',
roles: '角色',
auth: '登陆认证',

View File

@@ -147,10 +147,9 @@ const search = async () => {
.then((res) => {
loading.value = false;
data.value = res.data.items || [];
if (language.value === 'zh' || language.value === 'zh-Hant') {
for (const item of data.value) {
item.detailZH = loadDetail(item.detailZH);
}
for (const item of data.value) {
item.detailZH = loadDetail(item.detailZH);
item.detailEN = loadDetail(item.detailEN);
}
paginationConfig.total = res.data.total;
})
@@ -270,6 +269,11 @@ const exactReplacements: Record<string, string> = {
SessionTimeout: 'setting.sessionTimeout',
SecurityEntrance: 'setting.entrance',
ExpirationDays: 'setting.expirationTime',
OpsReportExportFormat: 'xpack.opsReport.page.defaultFormat',
OpsReportSchedule: 'xpack.opsReport.page.generationRule',
OpsReportSavePath: 'xpack.opsReport.page.savePath',
OpsReportThreshold: 'xpack.opsReport.page.threshold',
OpsReportAutoExport: 'xpack.opsReport.page.autoExport',
ComplexityVerification: 'setting.complexity',
MFAStatus: 'setting.mfa',
MonitorStatus: 'setting.enableMonitor',