feat: 新增多语言文案与组件国际化适配

本次提交完成了大量多语言相关的新增与优化工作:
1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案
2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包
3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案
4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持
5. 修复企业微信JS-SDK的错误提示文案硬编码问题
This commit is contained in:
2026-06-26 09:09:46 +08:00
parent 2d8846c64c
commit 066ca61d97
97 changed files with 2704 additions and 716 deletions

View File

@@ -1,4 +1,50 @@
export const lang = {
//title为每个页面的标题
title: 'Order Details'
}
//title for each page
title: 'Order Details',
// ====== Order Status ======
status: {
pendingPayment: 'Pending Payment',
completed: 'Completed',
closed: 'Closed'
},
// ====== Goods ======
goods: {
points: 'points'
},
// ====== Order Info ======
orderInfo: {
orderNo: 'Order No.:',
copy: 'Copy',
outTradeNo: 'Trade No.:',
createTime: 'Created:',
closeTime: 'Closed:'
},
// ====== Amount ======
amount: {
pointsUsed: 'Points Used',
deliveryFee: 'Shipping',
totalPayable: 'Total Payable:'
},
// ====== Buttons ======
button: {
close: 'Close',
pay: 'Pay'
},
// ====== Modal ======
modal: {
tip: 'Tip',
confirmClose: 'Are you sure to close this exchange?'
},
// ====== Toast Messages ======
toast: {
orderInfoNotFound: 'Order information not found!',
closeSuccess: 'Closed successfully'
}
}

View File

@@ -9,5 +9,24 @@ export const lang = {
waitEvaluate: 'Pending Review',
waitUse: 'Pending Use',
update: "Release to refresh",
updateIng: "Loading..."
}
updateIng: "Loading...",
// Search
searchPlaceholder: 'Please enter product name/order number',
// Order info
orderNo: 'Order No.: ',
totalGoods: '{num} items total',
actualPayment: 'Total: ',
remainingTime: 'Remaining: ',
// Action buttons
evaluate: 'Review',
review: 'Add Review',
viewDetail: 'View Details',
// Status Tabs (mapped by status value)
status: {
all: 'All',
waitpay: 'Pending Payment',
waitsend: 'Pending Shipment',
waitconfirm: 'Pending Receipt',
waitrate: 'Completed'
}
}

View File

@@ -96,6 +96,26 @@ export const lang = {
confirm: 'OK'
},
// ====== Promotion Description ======
promotion: {
title: 'Discounts & Gifts',
yuan: ' yuan',
piece: ' pcs',
points: ' points',
manjianFirst: 'Spend {limit}{unit}, save {money} yuan',
manjianMore: '; Spend {limit}{unit}, save {money} yuan',
couponDiscountFirst: 'get {num} {discount}% off coupon',
couponDiscountMore: ', get {num} {discount}% off coupon',
couponMoneyFirst: 'get {num} {money} yuan coupon',
couponMoneyMore: ', get {num} {money} yuan coupon',
mansongFirst: 'Spend {limit}{unit}, {text}',
mansongMore: '; Spend {limit}{unit}, {text}',
pointGain: 'earn {point} points',
pointFirst: 'Spend {limit}{unit}, {pointText}',
pointMore: '; Spend {limit}{unit}, {pointText}',
freeShipping: 'Free shipping on orders over {limit}{unit}'
},
// ====== Buyer Message Popup ======
buyerMessagePopup: {
title: 'Buyer Message',

View File

@@ -1,4 +1,37 @@
export const lang = {
//title为每个页面的标题
title: 'Apply for Refund',
}
// ====== Refund Type Selection ======
refundType: {
refundOnly: 'Refund Only',
refundOnlyDesc: 'Item not received, or seller agreed to refund without return',
returnRefund: 'Return & Refund',
returnRefundDesc: 'Item received, need to return the goods'
},
// ====== Refund Form ======
form: {
refundReason: 'Refund Reason:',
refundAmount: 'Refund Amount:',
refundRemark: 'Refund Remark',
pleaseSelect: 'Please Select',
remarkPlaceholder: 'Please enter refund remark (optional)'
},
// ====== Refund Reason Popup ======
reasonPopup: {
title: 'Refund Reason',
confirm: 'Confirm'
},
// ====== Toast Messages ======
toast: {
noRefundInfo: 'Failed to get refund information for this order item'
},
// ====== Form Validation ======
validate: {
pleaseSelectRefundReason: 'Please select a refund reason'
}
}