本次提交完成了大量多语言相关的新增与优化工作: 1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案 2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包 3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案 4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持 5. 修复企业微信JS-SDK的错误提示文案硬编码问题
57 lines
1.5 KiB
JavaScript
57 lines
1.5 KiB
JavaScript
export const lang = {
|
|
//title is the title of each page
|
|
title: 'Coupon Collection',
|
|
|
|
// ====== Tabs ======
|
|
// All
|
|
tabAll: 'All',
|
|
// Reward coupon
|
|
tabReward: 'Reward',
|
|
// Discount coupon
|
|
tabDiscount: 'Discount',
|
|
|
|
// ====== Coupon Info ======
|
|
// Discount display: {discount} off
|
|
discountText: '{discount}% off',
|
|
// Minimum spend condition: Available with {atLeast} yuan spend
|
|
minSpendAvailable: 'Available with {atLeast} yuan spend',
|
|
// No threshold coupon
|
|
noThresholdCoupon: 'No threshold coupon',
|
|
// Specified goods
|
|
specifiedGoods: 'Specified goods',
|
|
// All goods
|
|
allGoods: 'All goods',
|
|
// Maximum discount: (Max discount {amount} yuan)
|
|
maxDiscount: '(Max discount {amount} yuan)',
|
|
|
|
// ====== Valid Period ======
|
|
// Valid until: Valid until {date}
|
|
validPeriodDate: 'Valid until: {date}',
|
|
// Valid for N days after receipt: Valid for {days} days after receipt
|
|
validPeriodDays: 'Valid for {days} days after receipt',
|
|
// Long-term valid: Long-term valid
|
|
validPeriodLong: 'Long-term valid',
|
|
|
|
// ====== Buttons & Status ======
|
|
// Receive
|
|
receive: 'Receive',
|
|
// Use now
|
|
useNow: 'Use Now',
|
|
// Sold out
|
|
soldOut: 'Sold Out',
|
|
// Expired
|
|
expired: 'Expired',
|
|
// Limit reached
|
|
limitReached: 'Limit Reached',
|
|
|
|
// ====== Empty State ======
|
|
// No available coupons
|
|
emptyText: 'No available coupons',
|
|
|
|
// ====== Toast Messages ======
|
|
// Merchant not enabled coupons
|
|
merchantNotEnabled: 'Merchant has not enabled coupons',
|
|
// Receive success message
|
|
receiveSuccess: 'Successfully received, go use it now'
|
|
}
|