Files
shrimp-server/examples/basic-admin/web/src/locales/zh-cn.json
T
wc24 27a2348815 demo: 加 Vue 前端到 examples/basic-admin/web
为了端到端验证 Shrimp 框架,把 hand-admin 前端拷进 examples/basic-admin/web
作为临时演示用前端,@shrimp alias 直接指向同仓 src/,免构建。

修改要点:
- web/vite.config.ts: @shrimp 改成 ../../../src; proxy /admin-api 到 :3100
- web/tsconfig.json: 同步 @shrimp 路径; 删掉 hand-server-2 的 paths
- web/src/locales: 删掉 matter_*/zerobase 业务 key
- web/src/module: 删掉 matter_*/zerobase 业务 vue,只留 user/role/FieldRelativeTime
- examples/basic-admin/index.ts:
  - mount 到 /admin-api/* 而不是 /api/*
  - 加 /config /login /me 端点 (mock super-admin operator,固定 token)
  - DemoShrimp 子类覆盖 getMenuTree 用模块自身 label
  - MemoryShrimpCrud 的 getRelatedCrud 手动 wire 到 crudRegistry,
    populate 才能跑 (后续 70→90 改进项)

curl 已验证 /config /login /me /product/list 全通,tagIds_label 正确旁挂。
2026-05-23 15:28:10 +08:00

130 lines
3.9 KiB
JSON

{
"base": {
"name": "名称",
"add": "新增",
"edit": "编辑",
"delete": "删除",
"search": "搜索",
"filter": "筛选",
"reset": "重置",
"confirm": "确定",
"cancel": "取消",
"close": "关闭",
"save": "保存",
"submit": "提交",
"operation": "操作",
"exportExcel": "导出Excel",
"importExcel": "导入Excel",
"success": "成功",
"fail": "失败",
"noNavMenu": "没有子菜单",
"clearCache": "清除缓存",
"logout": "退出登录",
"netError": "网络出错",
"disabled": "禁用",
"enabled": "启用",
"pressEnter": "按回车添加",
"back": "返回",
"refresh": "刷新",
"notFound": "未找到数据",
"expand": "展开",
"collapse": "收起"
},
"user": {
"username": "用户名",
"password": "密码",
"nickname": "昵称",
"roleId": "角色",
"active": "启用状态",
"createdAt": "创建时间",
"updatedAt": "更新时间",
"operationLog": "操作日志"
},
"operationLog": {
"ip": "IP",
"method": "操作",
"args": "参数",
"success": "成功",
"errorMsg": "错误信息",
"createdAt": "时间"
},
"role": {
"name": "角色名",
"description": "描述",
"isSuperAdmin": "超级管理员",
"powers": "权限",
"createdAt": "创建时间",
"updatedAt": "更新时间",
"menuList": "角色列表",
"empty": "暂无角色",
"addRole": "新增角色",
"confirmDelete": "确定删除此角色吗?",
"selectOrCreate": "请选择或新建角色",
"selectAll": "全选",
"newRole": "新角色"
},
"table": {
"addSuccess": "新增成功",
"editSuccess": "编辑成功",
"confirmDelete": "确定删除此记录吗?",
"confirmClear": "确定清空数据吗?此操作不可恢复!",
"yes": "是",
"no": "否",
"unlimited": "不限",
"startTime": "开始时间",
"endTime": "结束时间",
"min": "最小值",
"max": "最大值",
"justNow": "刚刚",
"minutesAgo": "{n} 分钟前",
"hoursAgo": "{n} 小时前",
"daysAgo": "{n} 天前",
"textareaMultipleNotSupported": "文本域暂不支持多选",
"passwordMultipleNotSupported": "密码暂不支持多选",
"pressEnterForNumber": "输入数字后按回车"
},
"login": {
"userPlaceholder": "用户名 / 手机 / 邮箱",
"PWPlaceholder": "请输入密码",
"signIn": "登录",
"userError": "请输入用户名",
"PWError": "请输入密码"
},
"power": {
"add": "新增",
"edit": "编辑",
"delete": "删除",
"list": "列表",
"get": "详情",
"importExcel": "导入Excel",
"exportExcel": "导出Excel",
"view": "查看",
"clear": "清除",
"export": "导出",
"import": "导入"
},
"shrimp": {
"loginFailed": "用户名或密码错误",
"userNotFound": "用户不存在",
"relogin": "请重新登录",
"userDisabled": "用户已被禁用",
"emptyPath": "请求路径不能为空",
"forbidden": "权限不足",
"serverError": "服务器错误",
"cannotDisableSelf": "不能禁用自己",
"cannotDeleteSelf": "不能删除自己",
"cannotChangeOwnRole": "不能修改自己的角色",
"cannotEditOwnRole": "不能编辑自己的角色",
"cannotDeleteOwnRole": "不能删除自己的角色",
"cannotClearAllUsers": "不能清空所有用户",
"cannotClearAllRoles": "不能清空所有角色",
"fieldRequired": "字段\"{field}\"不能为空",
"fieldTypeError": "字段\"{field}\"类型错误",
"fieldInvalid": "字段\"{field}\"值不合法",
"fieldMin": "字段\"{field}\"最小值为 {min}",
"fieldMax": "字段\"{field}\"最大值为 {max}",
"fieldMinLength": "字段\"{field}\"最小长度为 {min}",
"fieldMaxLength": "字段\"{field}\"最大长度为 {max}",
"invalidJson": "JSON格式错误"
}
}