Files
vmall/apps/mall/locales/messaging.ts
T
james 9904696e76 feat: wave 2 migration (P3, P5, P7 openspec changes)
Implements, verifies, and archives the three remaining Wave 2 changes from
openspec/MIGRATION-PLAN.md.

- add-wallet-settlement (P3): demo recharge, guarded withdrawal freeze and
  one-time admin review, paginated own fund entries, idempotent per-shop
  weekly/monthly settlement statements with commission rate and one-time
  payout confirmation.
- add-merchant-onboarding (P5): personal/enterprise applications with one live
  application per user, guarded review with mandatory rejection reason, and
  transactional shop + owner provisioning returning one-time credentials;
  mall onboarding/status pages and an admin review console.
- add-membership-messaging (P7): platform member levels, append-only growth
  accrual on order completion with guarded one-way leveling, order/shipment/
  refund system messages with unread/read state and soft deletion, plus the
  mall header unread badge.

Backend: migrations 0019-0023, new wallet, settlement, merchant_onboarding,
membership and messaging modules, event hooks in order/fulfillment/aftersale,
and integration suites for each. Shared contract extended and all three
frontends updated; code indexes, domain docs, backend guidelines and the
migration tracker synced.

Verification: cargo test -p vmall-api green twice consecutively; mall, admin
and shop-admin builds pass; browser smoke on every new surface; openspec
validate --all --strict green (33 passed).

The three changes share the @vmall/shared contract, the mall mock adapter and
per-app locale/nav files, so they are committed together to keep every commit
buildable.
2026-09-25 15:25:29 +00:00

58 lines
1.9 KiB
TypeScript

// Buyer message center: list, filters, read/delete actions and the unread badge.
export default {
en: {
messaging: {
title: "Messages",
loadFailed: "Unable to load your messages.",
listFailed: "Unable to load messages.",
empty: "No messages yet.",
emptyUnread: "No unread messages.",
unreadOnly: "Unread only",
unreadBadge: "{count} unread messages",
markAllRead: "Mark all as read",
markAllSuccess: "Marked {count} message(s) as read.",
markAllFailed: "Unable to mark all messages as read.",
markRead: "Mark as read",
markReadFailed: "Unable to mark the message as read.",
open: "Open",
close: "Close",
delete: "Delete",
deleteConfirm: "Delete this message?",
deleteFailed: "Unable to delete the message.",
createdAt: "Time",
kind_order_paid: "Payment received",
kind_order_shipped: "Order shipped",
kind_refund_completed: "Refund completed",
statusUnread: "Unread",
statusRead: "Read",
},
},
zh: {
messaging: {
title: "消息中心",
loadFailed: "消息加载失败。",
listFailed: "消息列表加载失败。",
empty: "暂无消息。",
emptyUnread: "暂无未读消息。",
unreadOnly: "仅看未读",
unreadBadge: "{count} 条未读消息",
markAllRead: "全部标记为已读",
markAllSuccess: "已将 {count} 条消息标记为已读。",
markAllFailed: "全部标记已读失败。",
markRead: "标记已读",
markReadFailed: "标记已读失败。",
open: "展开",
close: "收起",
delete: "删除",
deleteConfirm: "确定删除这条消息吗?",
deleteFailed: "删除消息失败。",
createdAt: "时间",
kind_order_paid: "付款成功",
kind_order_shipped: "订单已发货",
kind_refund_completed: "退款完成",
statusUnread: "未读",
statusRead: "已读",
},
},
};