Files
LokiStack/frontend/src/i18n/locales/zh/hosts.ts
T
opsx 3a8eb521e2 chore(i18n,ui): 全站冗长文案精简 + shadcn 样板汉化 + 一致性修复
- 文案:约 25 组长文案中英同步精简(数据源引导/RBAC 注解/采集提示/删除确认等),三处重复 Ingress 教学收敛
- 汉化 shadcn 样板:分页 Previous/Next/aria、弹窗与抽屉 Close 接入 i18n(common.ui.*)
- 一致性:查询授权面板 p-4、仪表盘卡片 p-6、分析卡头 pb-3、部署总数图标配色、
  每日统计错误可重试、策略卡/最近部署行 truncate、状态徽章字重、三处原生 checkbox 换 shadcn、Label 浏览器圆角
- 词典:删除无引用的 raw.*/views.* 死键;zh 复数键风格统一(importCount/hits)
- 快捷查询提示、Ingress 统计口径与表内说明按反馈删减
2026-10-28 22:44:06 +08:00

82 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// hosts 命名空间 — 主机管理页中文文案
export default {
title: '主机管理',
description: '管理用于二进制方式部署 Loki 的 SSH 主机',
actions: {
add: '添加主机',
detail: '详情',
editAria: '编辑主机 {{name}}',
validateAria: '验证主机 {{name}}',
deleteAria: '删除主机 {{name}}',
},
fields: {
address: '地址',
user: '用户',
auth: '认证',
authPassword: '密码',
authKey: 'SSH 密钥',
os: '系统',
unknown: '未知',
},
empty: {
title: '暂无主机',
description: '添加第一台 SSH 主机开始使用',
},
delete: {
warning:
'确定删除「{{name}}」吗?仍有 {{dep}} 个部署、{{col}} 个采集策略在引用。',
},
toast: {
deleteFailed: '删除主机失败',
validateFailed: '验证失败',
createFailed: '添加主机失败',
},
form: {
addTitle: '添加 SSH 主机',
editTitle: '编辑主机',
editTitleWithName: '编辑主机 · {{name}}',
nameLabel: '名称 *',
hostIpLabel: '主机 IP *',
portLabel: '端口',
userLabel: '用户名 *',
authTypeLabel: '认证方式',
passwordLabel: '密码 *',
passwordLabelEdit: '密码(留空保持不变)',
passwordPlaceholder: 'SSH 登录密码',
privateKeyLabel: '私钥 *',
privateKeyLabelEdit: '私钥(留空保持不变)',
keyPhraseLabel: '密钥口令(可选)',
keyPhrasePlaceholder: '无口令则留空',
labelsLabel: '标签(JSON)',
submitAdd: '添加主机',
submitSave: '保存修改',
submittingAdd: '添加中...',
submittingSave: '保存中...',
validation: {
nameRequired: '请输入主机名称',
hostIpRequired: '请输入主机 IP',
portRequired: '请输入端口',
portNumeric: '端口必须为数字',
portRange: '端口必须在 1-65535 之间',
userRequired: '请输入用户名',
passwordRequired: '请填写 SSH 登录密码',
privateKeyRequired: '请粘贴 SSH 私钥内容',
},
},
detail: {
loadError: '加载主机详情失败',
usage: '资源使用率',
memory: '内存',
disk: '磁盘',
usageDetail: '({{detail}})',
basicInfo: '基本信息',
hostname: '主机名',
os: '系统',
arch: '架构',
kernel: '内核',
cpuCores: 'CPU 核数',
uptime: '运行时长',
unknown: '未知',
},
}