本次提交完成了大量多语言相关的新增与优化工作: 1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案 2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包 3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案 4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持 5. 修复企业微信JS-SDK的错误提示文案硬编码问题
172 lines
4.8 KiB
JavaScript
172 lines
4.8 KiB
JavaScript
export const lang = {
|
|
//title for each page
|
|
title: 'Confirm Order',
|
|
|
|
// ====== Virtual Goods ======
|
|
virtual: {
|
|
tips: 'Please provide your mobile number for virtual goods so the merchant can contact you',
|
|
mobile: 'Mobile Number',
|
|
mobilePlaceholder: 'Please enter your mobile number'
|
|
},
|
|
|
|
// ====== Address ======
|
|
address: {
|
|
setAddress: 'Please set your delivery address',
|
|
deliveryTime: 'Delivery Time',
|
|
selectDeliveryTime: 'Please select delivery time'
|
|
},
|
|
|
|
// ====== Local Delivery ======
|
|
localDelivery: {
|
|
providedBy: 'Delivered by ',
|
|
deliveredBy: '',
|
|
switchStore: 'Switch',
|
|
noStoreNearby: 'No stores available for delivery nearby, please choose another delivery method'
|
|
},
|
|
|
|
// ====== Store Pickup ======
|
|
store: {
|
|
businessHours: 'Business Hours:',
|
|
name: 'Name',
|
|
reservedMobile: 'Reserved Phone',
|
|
pickupTime: 'Pickup Time',
|
|
noPickupStore: 'No pickup store available, please choose another delivery method',
|
|
address: 'Address:'
|
|
},
|
|
|
|
// ====== Store List Popup ======
|
|
storePopup: {
|
|
title: 'All relevant stores nearby have been selected for you',
|
|
businessHours: 'Business Hours:',
|
|
address: 'Address:',
|
|
noStoreNearby: 'No pickup stores available near the selected address'
|
|
},
|
|
|
|
// ====== Goods ======
|
|
goods: {
|
|
notSupportDeliveryType: 'This product does not support {deliveryType}'
|
|
},
|
|
|
|
// ====== Order Money ======
|
|
orderMoney: {
|
|
buyerMessage: 'Buyer Message',
|
|
noMessage: 'No message',
|
|
coupon: 'Coupon',
|
|
couponSelected: '{count} coupon selected',
|
|
noCoupon: 'No coupon',
|
|
totalItems: '{count} items',
|
|
subtotal: 'Subtotal:',
|
|
goodsAmount: 'Goods Amount',
|
|
shippingFee: 'Shipping',
|
|
discount: 'Discount',
|
|
pointsDeduction: 'Points Deduction'
|
|
},
|
|
|
|
// ====== Member Card ======
|
|
memberCard: {
|
|
activate: 'Activate ',
|
|
expectedSave: 'Estimated savings for this order',
|
|
yuan: '',
|
|
weekCard: 'Weekly Card',
|
|
week: 'week',
|
|
monthCard: 'Monthly Card',
|
|
month: 'month',
|
|
quarterCard: 'Quarterly Card',
|
|
quarter: 'quarter',
|
|
yearCard: 'Yearly Card',
|
|
year: 'year'
|
|
},
|
|
|
|
// ====== Agreement ======
|
|
agreement: {
|
|
tipPrefix: 'Please read the ',
|
|
tipSuffix: ' before purchase. Placing an order means you agree to this agreement'
|
|
},
|
|
|
|
// ====== Settlement Bar ======
|
|
settlement: {
|
|
totalItems: '{count} items',
|
|
total: 'Total:',
|
|
submitOrder: 'Submit Order'
|
|
},
|
|
|
|
// ====== Promotion Popup ======
|
|
promotionPopup: {
|
|
title: 'Promotion Discount',
|
|
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',
|
|
placeholder: 'Please coordinate with the merchant before leaving a message',
|
|
confirm: 'OK'
|
|
},
|
|
|
|
// ====== Coupon Popup ======
|
|
couponPopup: {
|
|
title: 'Coupons',
|
|
discount: '% off',
|
|
minSpend: 'Min. spend {amount}',
|
|
noThreshold: 'No threshold',
|
|
maxDiscount: 'Max discount ¥{amount}',
|
|
validPeriod: 'Valid Period:',
|
|
permanentValid: 'Permanent',
|
|
noAvailableCoupon: 'No available coupons',
|
|
confirm: 'OK'
|
|
},
|
|
|
|
// ====== Form Popup ======
|
|
formPopup: {
|
|
title: 'Buyer Info',
|
|
confirm: 'OK'
|
|
},
|
|
|
|
// ====== Member Card Popup ======
|
|
memberCardPopup: {
|
|
title: 'Select Card',
|
|
unlimited: 'Unlimited',
|
|
remaining: '{count} remaining',
|
|
permanentValid: 'Permanent',
|
|
confirm: 'OK'
|
|
},
|
|
|
|
// ====== Toast Messages ======
|
|
toast: {
|
|
enterReservedMobile: 'Please enter reserved mobile number',
|
|
enterValidMobile: 'Please enter a valid mobile number',
|
|
noDeliveryMethod: 'Merchant has not set delivery method',
|
|
selectAddressFirst: 'Please select your delivery address first',
|
|
noPickupStore: 'No pickup store available, please choose another delivery method',
|
|
selectPickupTime: 'Please select pickup time',
|
|
noDeliveryStore: 'No stores available for delivery, please choose another delivery method',
|
|
selectDeliveryTime: 'Please select delivery time',
|
|
enterInvoiceTitle: 'Please enter invoice title',
|
|
enterTaxpayerNumber: 'Please enter taxpayer identification number',
|
|
enterInvoiceAddress: 'Please enter invoice mailing address',
|
|
enterEmail: 'Please enter email',
|
|
enterValidEmail: 'Please enter a valid email',
|
|
selectInvoiceContent: 'Please select invoice content'
|
|
}
|
|
}
|