Files
vmall/apps/admin/locales-extra.ts
james 68317c2040 feat(admin): manage points products and redemptions
Platform operators get a points catalog screen (create, edit, publish and
unpublish products with localized names, points price, stock, and ordering) and
a redemption screen that lists orders and moves pending ones to fulfilled or
cancelled. Both are reachable from the console navigation.
2026-09-18 12:43:00 +00:00

142 lines
4.9 KiB
TypeScript

// App-local message extensions, deep-merged over @vmall/shared locales.
// Add keys here (never edit the shared locale files from an app agent).
export const enExtra = {
auth: {
adminHint: "Dev account: admin@vmall.local / admin1234",
wrongRole: "This account does not have platform administrator access.",
},
nav: {
pointsProducts: "Points products",
pointsOrders: "Point redemptions",
},
admin: {
dashboardTitle: "Platform overview",
refresh: "Refresh",
open: "Open",
totalUsers: "Total users",
totalShops: "Total shops",
totalOrders: "Total orders",
enabledCurrencies: "Enabled currencies",
shopRequired: "Select a shop for shop owners and staff.",
noAssignedShop: "No shop assigned",
created: "Created",
orderShop: "Shop",
orderUser: "User",
orderTotal: "Total",
shopStatus: "Shop status",
currencyCode: "Currency code",
currencyNameEn: "Currency name (English)",
currencyNameZh: "Currency name (中文)",
codeInvalid: "Currency code must be three letters.",
currencyFormTitle: "Add currency",
userManagement: "User management",
shopManagement: "Shop management",
orderManagement: "Order management",
currencyManagement: "Currency management",
pageOf: "Page {page} of {total}",
pointsProductManagement: "Points catalog",
pointsOrderManagement: "Point redemptions",
newPointsProduct: "New points product",
editPointsProduct: "Edit points product",
pointsNameEn: "Name (English)",
pointsNameZh: "Name (中文)",
pointsPrice: "Points price",
pointsStock: "Stock",
pointsImage: "Image URL",
pointsPosition: "Sort order",
pointsRecommend: "Featured",
pointsPublished: "Published",
publishedOn: "Published",
publishedOff: "Draft",
savePointsProduct: "Save points product",
pointsProductSaved: "Points product saved.",
pointsNameRequired: "Both language names are required.",
pointsPriceInvalid: "Points price must be a positive integer.",
pointsStockInvalid: "Stock cannot be negative.",
redemptionNo: "Redemption no.",
redemptionCustomer: "Customer",
redemptionReward: "Reward",
redemptionPoints: "Points",
redemptionStatus: "Status",
fulfillRedemption: "Fulfil",
cancelRedemption: "Cancel",
redemptionFulfilled: "Redemption fulfilled.",
redemptionCancelled: "Redemption cancelled.",
redemptionStatuses: {
pending_fulfillment: "Pending",
fulfilled: "Fulfilled",
cancelled: "Cancelled",
},
},
} as const;
export const zhExtra = {
auth: {
adminHint: "开发账号:admin@vmall.local / admin1234",
wrongRole: "此账号没有平台管理员权限。",
},
nav: {
pointsProducts: "积分商品",
pointsOrders: "积分兑换单",
},
admin: {
dashboardTitle: "平台概览",
refresh: "刷新",
open: "打开",
totalUsers: "用户总数",
totalShops: "店铺总数",
totalOrders: "订单总数",
enabledCurrencies: "启用币种",
shopRequired: "店主和店员必须选择所属店铺。",
noAssignedShop: "未分配店铺",
created: "创建时间",
orderShop: "店铺",
orderUser: "用户",
orderTotal: "合计",
shopStatus: "店铺状态",
currencyCode: "币种代码",
currencyNameEn: "币种名称(英文)",
currencyNameZh: "币种名称(中文)",
codeInvalid: "币种代码必须是三个字母。",
currencyFormTitle: "添加币种",
userManagement: "用户管理",
shopManagement: "店铺管理",
orderManagement: "订单管理",
currencyManagement: "币种管理",
pageOf: "第 {page} 页,共 {total} 页",
pointsProductManagement: "积分商品目录",
pointsOrderManagement: "积分兑换单",
newPointsProduct: "新建积分商品",
editPointsProduct: "编辑积分商品",
pointsNameEn: "名称(英文)",
pointsNameZh: "名称(中文)",
pointsPrice: "积分价格",
pointsStock: "库存",
pointsImage: "图片链接",
pointsPosition: "排序",
pointsRecommend: "推荐",
pointsPublished: "已发布",
publishedOn: "已发布",
publishedOff: "草稿",
savePointsProduct: "保存积分商品",
pointsProductSaved: "积分商品已保存。",
pointsNameRequired: "中英文名称均为必填项。",
pointsPriceInvalid: "积分价格必须为正整数。",
pointsStockInvalid: "库存不能为负数。",
redemptionNo: "兑换单号",
redemptionCustomer: "用户",
redemptionReward: "兑换商品",
redemptionPoints: "积分",
redemptionStatus: "状态",
fulfillRedemption: "发货",
cancelRedemption: "取消",
redemptionFulfilled: "兑换单已发货。",
redemptionCancelled: "兑换单已取消。",
redemptionStatuses: {
pending_fulfillment: "待发货",
fulfilled: "已发货",
cancelled: "已取消",
},
},
} as const;