Files
NextEdu/src/shared/i18n/messages/zh-CN/announcements.json
SpecialX 1fe30984b6 refactor(announcements,messaging,notifications): V1+V2 审计重构 — i18n 命名空间独立 + 通知标题 i18n 化 + 服务端过滤 + 编排下沉 + 表单错误展示 + 架构图同步
V1 改进(已完成):
- P0-4/P1-4/P1-5: 通知组件和 CRUD Action 从 messaging 迁移至 notifications 模块
- P1-5: 新增 getMessagesPageData / getAdminAnnouncementsPageData 编排函数
- P1-6: announcements schema 添加 superRefine 条件校验
- P1-7: 新增 useMessageSearch hook(防抖 + 请求竞态取消)+ 客户端分页 UI
- P1-9: deleteMessage 事务化
- P2-11: 全模块 trackEvent 埋点
- 全模块 i18n 接入 + Error Boundary + a11y 改进

V2 改进(本次完成):
- V2-P0-1: 通知 i18n 命名空间独立(notifications.json),useTranslations 从 "messages" 切换到 "notifications"
- V2-P0-2: 公告/消息通知标题 i18n 化,Server Action 中使用 getTranslations 生成通知标题
- V2-P1-1: AnnouncementList 纯服务端过滤,移除客户端 useState/useMemo
- V2-P1-2: MessageList 客户端过滤仅在初始数据时执行,搜索结果由服务端按 tab 过滤
- V2-P1-3: 消息详情页编排下沉,新增 getMessageDetailPageData 编排函数
- V2-P1-4: 表单服务端校验错误展示(fieldErrors + aria-invalid)
- V2-P2-1: 轮询间隔常量化(POLL_INTERVAL_MS)
- V2-P2-2: 架构图同步(004 + 005)
2026-06-22 18:43:12 +08:00

95 lines
2.6 KiB
JSON

{
"title": {
"list": "公告",
"detail": "公告详情",
"adminList": "公告管理",
"edit": "编辑公告",
"create": "新建公告"
},
"description": {
"list": "随时了解学校最新公告动态。",
"adminList": "创建并管理全校公告。",
"edit": "更新公告详情。"
},
"filter": {
"all": "全部",
"published": "已发布",
"draft": "草稿",
"archived": "已归档",
"placeholder": "按状态筛选"
},
"status": {
"draft": "草稿",
"published": "已发布",
"archived": "已归档"
},
"type": {
"school": "全校",
"grade": "年级",
"class": "班级"
},
"form": {
"title": "标题",
"titlePlaceholder": "公告标题",
"content": "内容",
"contentPlaceholder": "请输入公告内容...",
"type": "类型",
"typePlaceholder": "选择类型",
"status": "状态",
"statusPlaceholder": "选择状态",
"targetGrade": "目标年级",
"targetGradePlaceholder": "选择年级(可选)",
"targetClass": "目标班级",
"targetClassPlaceholder": "选择班级(可选)",
"submit": "保存",
"create": "创建",
"cancel": "取消",
"saving": "保存中..."
},
"actions": {
"new": "新建公告",
"publish": "发布",
"archive": "归档",
"edit": "编辑",
"delete": "删除",
"back": "返回"
},
"messages": {
"created": "公告已创建",
"updated": "公告已更新",
"deleted": "公告已删除",
"published": "公告已发布",
"archived": "公告已归档",
"notFound": "公告不存在",
"createFailed": "创建公告失败",
"updateFailed": "保存公告失败",
"publishFailed": "发布失败",
"archiveFailed": "归档失败",
"deleteFailed": "删除失败",
"invalidForm": "表单数据无效",
"invalidState": "表单状态无效"
},
"meta": {
"publishedAt": "发布于 {date}",
"createdAt": "创建于 {date}",
"updatedAt": "更新于 {date}",
"author": "作者:{name}"
},
"empty": {
"noAnnouncements": "暂无公告",
"noAnnouncementsDesc": "目前还没有任何公告。",
"noMatch": "当前筛选条件下暂无公告。",
"deleteTitle": "删除公告",
"deleteDesc": "此操作将永久删除公告{title}。"
},
"notification": {
"publishedTitle": "新公告:{title}",
"publishedContent": "您有一条新公告,请及时查看。"
},
"error": {
"loadFailed": "公告加载失败",
"loadFailedDesc": "抱歉,加载公告时发生了意外错误。请稍后重试。",
"retry": "重试"
}
}