feat: 新增多语言文案与组件国际化适配
本次提交完成了大量多语言相关的新增与优化工作: 1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案 2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包 3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案 4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持 5. 修复企业微信JS-SDK的错误提示文案硬编码问题
This commit is contained in:
@@ -7,9 +7,17 @@ export const lang = {
|
||||
mobilePhone: 'Mobile Number',
|
||||
mobilePhonePlaceholder: 'Please enter mobile number',
|
||||
accountType: 'Account Type',
|
||||
bankInfo: 'Branch Information',
|
||||
bankInfoPlaceholder: 'Please enter branch information',
|
||||
bankName: 'Bank Name',
|
||||
bankNamePlaceholder: 'Please enter bank name',
|
||||
withdrawalAccount: 'Withdrawal Account',
|
||||
withdrawalAccountPlaceholder: 'Please enter withdrawal account',
|
||||
save: 'Save'
|
||||
}
|
||||
save: 'Save',
|
||||
pleaseEnterName: 'Please enter name',
|
||||
pleaseEnterMobile: 'Please enter mobile number',
|
||||
pleaseEnterValidMobile: 'Please enter a valid mobile number',
|
||||
pleaseSelectAccountType: 'Please select account type',
|
||||
pleaseEnterBankName: 'Please enter bank name',
|
||||
pleaseEnterWithdrawalAccount: 'Please enter withdrawal account',
|
||||
addSuccess: 'Added successfully',
|
||||
editSuccess: 'Modified successfully'
|
||||
}
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
export const lang = {
|
||||
title: 'Account Cancellation',
|
||||
}
|
||||
riskTip: 'Risk Warning: After confirming the application, your assets will be cleared and cannot be recovered!',
|
||||
accountAssets: 'Account Assets',
|
||||
point: 'Points',
|
||||
cashBalance: 'Cash Balance',
|
||||
storedValueBalance: 'Stored Value Balance',
|
||||
coupon: 'Coupons',
|
||||
orderAssets: 'Order Assets',
|
||||
waitDelivery: 'Pending Shipment',
|
||||
waitReceive: 'Pending Receipt',
|
||||
refunding: 'Refunding',
|
||||
fenxiaoAssets: 'Distribution Assets',
|
||||
withdrawableCommission: 'Withdrawable Commission',
|
||||
withdrawingCommission: 'Withdrawing Commission',
|
||||
waitSettleOrder: 'Pending Settlement Orders',
|
||||
prevStep: 'Previous',
|
||||
confirmApply: 'Confirm Application',
|
||||
}
|
||||
|
||||
@@ -1,4 +1,38 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Membership Card'
|
||||
}
|
||||
//title is the title of each page
|
||||
title: 'Membership Card',
|
||||
|
||||
// Member info
|
||||
validUntil: 'Valid until: ',
|
||||
|
||||
// Membership card description
|
||||
enjoyDiscountAnd: ' can enjoy consumption discounts and',
|
||||
memberGiftBenefits: 'member gift packages and other benefits',
|
||||
|
||||
// Member benefits
|
||||
memberBenefits: 'Member Benefits',
|
||||
freeShipping: 'Free Shipping',
|
||||
enjoyFreeShipping: 'Enjoy free shipping service',
|
||||
consumptionDiscount: 'Consumption Discount',
|
||||
enjoyDiscountOnSomeProducts: 'Enjoy {discount}% off on some products',
|
||||
pointsReward: 'Points Reward',
|
||||
earnPointsMultiplier: 'Earn {multiplier}x points on orders',
|
||||
|
||||
// Welcome gift
|
||||
welcomeGift: 'Welcome Gift',
|
||||
pointsGift: 'Points Gift',
|
||||
giftPoints: 'Get {points} points',
|
||||
redPacketGift: 'Red Packet Gift',
|
||||
giftRedPacket: 'Get {amount} yuan red packet',
|
||||
couponGift: 'Coupon Gift',
|
||||
giftCoupons: 'Get {count} coupons',
|
||||
|
||||
// Action buttons
|
||||
renewNow: 'Renew Now',
|
||||
|
||||
// Popup
|
||||
cardDescription: 'Membership Card Description',
|
||||
|
||||
// Share
|
||||
shareTitle: 'Exclusive member benefits, come and experience',
|
||||
}
|
||||
|
||||
@@ -1,4 +1,47 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'My Coupons'
|
||||
}
|
||||
//title is the title of each page
|
||||
title: 'My Coupons',
|
||||
// ====== Tabs ======
|
||||
// Unused
|
||||
tabUnused: 'Unused',
|
||||
// Used
|
||||
tabUsed: 'Used',
|
||||
// Expired
|
||||
tabExpired: 'Expired',
|
||||
|
||||
// ====== Coupon Info ======
|
||||
// Discount display: {discount}% off
|
||||
discountText: '{discount}% off',
|
||||
// Minimum amount condition: Available with {amount} yuan spend
|
||||
minAmountCondition: 'Min. {amount} available',
|
||||
// No threshold coupon
|
||||
noThresholdCoupon: 'No threshold coupon',
|
||||
// Specified goods
|
||||
specifiedGoods: 'Specified goods',
|
||||
// Maximum discount: (Max discount {amount} yuan)
|
||||
maxDiscount: '(Max discount {amount})',
|
||||
|
||||
// ====== Valid Period ======
|
||||
// Valid period prefix
|
||||
validPeriodPrefix: 'Valid: ',
|
||||
// Long-term valid
|
||||
longTermValid: 'Long-term valid',
|
||||
|
||||
// ====== Buttons & Status ======
|
||||
// Use now
|
||||
useNow: 'Use Now',
|
||||
// Used
|
||||
used: 'Used',
|
||||
// Expired
|
||||
expired: 'Expired',
|
||||
|
||||
// ====== Empty State ======
|
||||
// No coupons yet
|
||||
emptyText: 'No coupons yet',
|
||||
// Go shopping
|
||||
goShopping: 'Go Shopping',
|
||||
|
||||
// ====== Toast Messages ======
|
||||
// Merchant has not enabled coupons
|
||||
merchantNotEnabled: 'Merchant has not enabled coupons'
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
//title is the title of each page
|
||||
title: 'Member Level',
|
||||
defaultLevelTips: 'You are already the highest level member!',
|
||||
tag: 'Exclusive Tag',
|
||||
@@ -13,5 +13,48 @@ export const lang = {
|
||||
equity: 'Benefits',
|
||||
giftPackage: 'Upgrade Gift Pack',
|
||||
levelExplain: 'Level Explanation',
|
||||
upgradeTips: 'Upgrade membership to enjoy exclusive benefits'
|
||||
}
|
||||
upgradeTips: 'Upgrade membership to enjoy exclusive benefits',
|
||||
// Current level label
|
||||
currentLevelLabel: 'Current Level: ',
|
||||
// Growth rules
|
||||
growthRules: 'Growth Rules',
|
||||
// Current level tag
|
||||
currentLevelTag: 'Current Level',
|
||||
// Current growth value
|
||||
currentGrowthValue: 'Current Growth',
|
||||
// Next level progress tip
|
||||
growthToNextLevel: 'Earn {needGrowth} more growth points to become {levelName}',
|
||||
// Max level reached
|
||||
maxLevelReached: 'You have reached the highest level',
|
||||
// Member benefits
|
||||
memberBenefits: 'Member Benefits',
|
||||
// Free shipping
|
||||
freeShipping: 'Free Shipping',
|
||||
freeShippingDesc: 'Free shipping on all products',
|
||||
// Consumption discount
|
||||
consumptionDiscount: 'Consumption Discount',
|
||||
noDiscountDesc: 'No consumption discount or other benefits',
|
||||
discountDescWithValue: 'Enjoy {discount}% consumption discount',
|
||||
// Points reward
|
||||
pointsReward: 'Points Reward',
|
||||
pointsRewardDesc: 'Earn {multiplier}x points multiplier',
|
||||
// Member gift pack
|
||||
memberGift: 'Member Gift Pack',
|
||||
// Points gift
|
||||
pointsGift: 'Points Gift',
|
||||
giftPoints: 'Gift: {points} points',
|
||||
// Red packet gift
|
||||
redPacketGift: 'Red Packet Gift',
|
||||
giftRedPacket: 'Gift: {amount} yuan red packet',
|
||||
// Coupon gift
|
||||
couponGift: 'Coupon Gift',
|
||||
giftCoupons: 'Gift: {count} coupons',
|
||||
// Coupon popup
|
||||
coupons: 'Coupons',
|
||||
// Currency unit
|
||||
yuan: ' yuan',
|
||||
// Discount unit
|
||||
zhe: '% off',
|
||||
// Loading tip
|
||||
navigatingToDetail: 'Navigating to detail page'
|
||||
}
|
||||
|
||||
18
lang/en-us/member/level_growth_rules.js
Normal file
18
lang/en-us/member/level_growth_rules.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export const lang = {
|
||||
//title is the title of each page
|
||||
title: 'Growth Value Rules',
|
||||
// Table headers
|
||||
level: 'Level',
|
||||
growthValue: 'Growth Value',
|
||||
// What is growth value
|
||||
whatIsGrowthValue: 'What is Growth Value',
|
||||
growthValueDescription: 'Growth value is calculated from purchases after a consumer becomes a member of the store. Growth value determines the membership level. The higher the membership level, the more member benefits and gift packages you can enjoy.',
|
||||
// How to get growth value
|
||||
howToGetGrowthValue: 'How to Earn Growth Value',
|
||||
ruleRegister: '1. Earn x growth points for registering as a member.',
|
||||
ruleRecharge: '2. Earn x growth points for recharging balance.',
|
||||
ruleCheckin: '3. Earn x growth points for daily check-in.',
|
||||
ruleConsume: '4. Earn x growth points for every x yuan spent when the transaction is completed.',
|
||||
// Loading tip
|
||||
navigatingToDetail: 'Navigating to detail page'
|
||||
}
|
||||
@@ -1,3 +1,28 @@
|
||||
export const lang = {
|
||||
title: 'Payment Password',
|
||||
}
|
||||
|
||||
// Tips
|
||||
passwordTips: 'Please enter a 6-digit payment password. It is recommended not to use repeated or consecutive numbers.',
|
||||
codeSentTips: 'Verification code has been sent to {mobile}. Please enter the 4-digit code below.',
|
||||
|
||||
// Action tips
|
||||
inputSmsCode: 'Enter SMS verification code',
|
||||
setPayPassword: 'Please set payment password',
|
||||
inputAgain: 'Please enter again',
|
||||
|
||||
// Buttons
|
||||
confirm: 'Confirm',
|
||||
getCode: 'Get Code',
|
||||
getDynacode: 'Get Dynamic Code',
|
||||
|
||||
// Modal
|
||||
tipsTitle: 'Tip',
|
||||
bindMobileFirst: 'You need to bind your mobile number first to set a payment password. Bind now?',
|
||||
|
||||
// Toast
|
||||
modifySuccess: 'Modified successfully',
|
||||
passwordMismatch: 'The two passwords do not match',
|
||||
|
||||
// Countdown
|
||||
resendAfter: 'Resend after {seconds}s',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user