The product page loads a shop's claimable coupons through the shared client and claims them in place; the buyer coupon list reads owned snapshots with their claimed/redeemed/expired state. Checkout offers each shop order at most one owned coupon and submits only the choice; the pay page and order detail render the server-persisted discount and reduced total, never a client figure. Coupon fixtures leave the pages; the fixed-data adapter still serves the coupon domain as the rollback path. The demo seed creates two deterministic templates and claims them for the demo customer.
197 lines
6.3 KiB
TypeScript
197 lines
6.3 KiB
TypeScript
export default {
|
|
en: {
|
|
user: {
|
|
title: "My account",
|
|
editProfile: "Edit profile",
|
|
orderCenter: "Orders",
|
|
memberCenter: "Membership",
|
|
dashboard: "Account overview",
|
|
myOrders: "My orders",
|
|
addresses: "Shipping addresses",
|
|
coupons: "My coupons",
|
|
favorites: "Favorites",
|
|
invoices: "My invoices",
|
|
statsBalance: "Balance",
|
|
statsPoints: "Points",
|
|
statsFrozen: "Frozen funds",
|
|
pendingPayment: "To pay",
|
|
pendingShipment: "To ship",
|
|
pendingReceipt: "To receive",
|
|
completed: "Completed",
|
|
afterSale: "After-sale",
|
|
recentOrders: "Recent orders",
|
|
favoriteProducts: "Favorite products",
|
|
viewAll: "View all",
|
|
noOrders: "No orders yet.",
|
|
noFavorites: "No favorites yet.",
|
|
orderNo: "Order no.",
|
|
createdAt: "Created",
|
|
shop: "Shop",
|
|
orderTotal: "Order total",
|
|
viewDetails: "View details",
|
|
payNow: "Pay now",
|
|
cancelOrder: "Cancel order",
|
|
ordersTitle: "My orders",
|
|
filterAll: "All",
|
|
filterPendingPayment: "To pay",
|
|
filterPendingShipment: "To ship",
|
|
filterPendingReceipt: "To receive",
|
|
filterCompleted: "Completed",
|
|
filterCancelled: "Cancelled",
|
|
orderDetail: "Order details",
|
|
shippingAddress: "Shipping address",
|
|
orderItems: "Order items",
|
|
total: "Total",
|
|
product: "Product",
|
|
shipments: "Shipments",
|
|
shipmentNo: "Shipment no.",
|
|
carrier: "Carrier",
|
|
trackingNo: "Tracking no.",
|
|
confirmDelivery: "Confirm delivery",
|
|
noShipments: "No shipment information yet.",
|
|
invoiceRequest: "Request invoice",
|
|
invoiceTitle: "Invoice title",
|
|
taxNo: "Tax number (optional)",
|
|
invoiceKind: "Invoice type",
|
|
personal: "Personal",
|
|
company: "Company",
|
|
submitInvoice: "Request invoice",
|
|
invoiceSuccess: "Invoice request submitted.",
|
|
addAddress: "Add address",
|
|
editAddress: "Edit address",
|
|
recipient: "Recipient",
|
|
phone: "Phone",
|
|
region: "State / Province",
|
|
city: "City",
|
|
line1: "Street address",
|
|
postalCode: "Postal code",
|
|
defaultAddress: "Default",
|
|
setDefault: "Set as default",
|
|
saveAddress: "Save address",
|
|
country: "Country",
|
|
saveFailed: "Save failed. Please try again.",
|
|
noAddresses: "No shipping addresses yet.",
|
|
favoritesTitle: "Favorites",
|
|
favoriteProductsTab: "Products",
|
|
favoriteStoresTab: "Stores",
|
|
removeFavorite: "Remove favorite",
|
|
enterStore: "Enter store",
|
|
noFavoriteStores: "No favorite stores yet.",
|
|
couponsTitle: "My coupons",
|
|
couponTitle: "Coupon",
|
|
amount: "Amount",
|
|
threshold: "Minimum spend",
|
|
expiresAt: "Expires",
|
|
noCoupons: "No coupons yet.",
|
|
couponStatus: "Status",
|
|
couponClaimed: "Claimed",
|
|
couponRedeemed: "Used",
|
|
couponExpired: "Expired",
|
|
invoicesTitle: "My invoices",
|
|
invoiceNo: "Invoice no.",
|
|
invoiceOrderNo: "Order no.",
|
|
invoiceIssuedAt: "Issued at",
|
|
noInvoices: "No invoices yet.",
|
|
validationRequired: "Please complete the required fields.",
|
|
loadFailed: "Unable to load your account data.",
|
|
},
|
|
},
|
|
zh: {
|
|
user: {
|
|
title: "我的账户",
|
|
editProfile: "编辑资料",
|
|
orderCenter: "订单中心",
|
|
memberCenter: "会员中心",
|
|
dashboard: "个人中心",
|
|
myOrders: "我的订单",
|
|
addresses: "收货地址",
|
|
coupons: "我的优惠券",
|
|
favorites: "收藏/关注",
|
|
invoices: "我的发票",
|
|
statsBalance: "账户余额",
|
|
statsPoints: "账户积分",
|
|
statsFrozen: "冻结资金",
|
|
pendingPayment: "待付款",
|
|
pendingShipment: "待发货",
|
|
pendingReceipt: "待收货",
|
|
completed: "已完成",
|
|
afterSale: "售后中",
|
|
recentOrders: "最近订单",
|
|
favoriteProducts: "收藏的宝贝",
|
|
viewAll: "查看全部",
|
|
noOrders: "暂无订单。",
|
|
noFavorites: "暂无收藏。",
|
|
orderNo: "订单号",
|
|
createdAt: "创建时间",
|
|
shop: "店铺",
|
|
orderTotal: "订单总额",
|
|
viewDetails: "查看详情",
|
|
payNow: "付款",
|
|
cancelOrder: "取消订单",
|
|
ordersTitle: "我的订单",
|
|
filterAll: "全部",
|
|
filterPendingPayment: "待付款",
|
|
filterPendingShipment: "待发货",
|
|
filterPendingReceipt: "待收货",
|
|
filterCompleted: "已完成",
|
|
filterCancelled: "已取消",
|
|
orderDetail: "订单详情",
|
|
shippingAddress: "收货地址",
|
|
orderItems: "商品信息",
|
|
total: "合计",
|
|
product: "商品",
|
|
shipments: "物流信息",
|
|
shipmentNo: "发货单号",
|
|
carrier: "承运商",
|
|
trackingNo: "物流单号",
|
|
confirmDelivery: "确认收货",
|
|
noShipments: "暂无物流信息。",
|
|
invoiceRequest: "申请发票",
|
|
invoiceTitle: "发票抬头",
|
|
taxNo: "税号(选填)",
|
|
invoiceKind: "发票类型",
|
|
personal: "个人",
|
|
company: "企业",
|
|
submitInvoice: "提交申请",
|
|
invoiceSuccess: "发票申请已提交。",
|
|
addAddress: "新增地址",
|
|
editAddress: "编辑地址",
|
|
recipient: "收货人",
|
|
phone: "联系电话",
|
|
region: "省/州",
|
|
city: "城市",
|
|
line1: "详细地址",
|
|
postalCode: "邮编",
|
|
defaultAddress: "默认",
|
|
setDefault: "设为默认",
|
|
saveAddress: "保存地址",
|
|
country: "国家",
|
|
saveFailed: "保存失败,请重试。",
|
|
noAddresses: "暂无收货地址。",
|
|
favoritesTitle: "我的收藏",
|
|
favoriteProductsTab: "商品",
|
|
favoriteStoresTab: "店铺",
|
|
removeFavorite: "取消收藏",
|
|
enterStore: "进入店铺",
|
|
noFavoriteStores: "暂无关注店铺。",
|
|
couponsTitle: "我的优惠券",
|
|
couponTitle: "优惠券",
|
|
amount: "优惠金额",
|
|
threshold: "使用门槛",
|
|
expiresAt: "有效期至",
|
|
noCoupons: "暂无优惠券。",
|
|
couponStatus: "状态",
|
|
couponClaimed: "未使用",
|
|
couponRedeemed: "已使用",
|
|
couponExpired: "已过期",
|
|
invoicesTitle: "我的发票",
|
|
invoiceNo: "发票号",
|
|
invoiceOrderNo: "订单号",
|
|
invoiceIssuedAt: "开具时间",
|
|
noInvoices: "暂无发票。",
|
|
validationRequired: "请填写必填项。",
|
|
loadFailed: "账户数据加载失败。",
|
|
},
|
|
},
|
|
};
|