feat: 新增多语言文案、优化导航及工具函数,修复部分业务逻辑
1. 新增多语言资源文件,覆盖文章、预约日期、会员信息、优惠券、表单、购物车、积分商城、分销、AI聊天等多个模块 2. 优化底部导航组件,使用多语言配置替代硬编码文案 3. 重构工具函数,新增从后端数据提取多语言文案的工具方法 4. 修复邀请好友页面的保存提示文案,替换为多语言版本 5. 修复商品SKU组件的提示文案,使用多语言配置 6. 重构AI聊天页面的帮助文档和回复模板,使用多语言配置 7. 优化空状态组件,支持多语言默认文案 8. 修复跳转逻辑,补全参数传递 9. 新增本地开发环境配置
This commit is contained in:
@@ -34,6 +34,83 @@ export const lang = {
|
||||
|
||||
kefu:'Contact',
|
||||
follow:'Follow',
|
||||
|
||||
spec:'Spec'
|
||||
}
|
||||
|
||||
spec:'Spec',
|
||||
|
||||
// SKU related
|
||||
stockInsufficient: 'Insufficient stock',
|
||||
offShelves: 'This product has been removed',
|
||||
soldOut: 'Sold out',
|
||||
buyCountNotZero: 'Purchase quantity cannot be less than or equal to 0',
|
||||
stockLessThanMinBuy: 'Stock is less than minimum purchase quantity',
|
||||
purchaseLimit: 'Limit {count} {unit} per person',
|
||||
purchaseLimitWithPurchased: 'Limit {count} {unit} per person, you have purchased {purchased} {unit}',
|
||||
maxPurchasePerTime: 'Maximum purchase of {count} {unit} per time',
|
||||
selectedSpec: 'Selected: ',
|
||||
buyCount: 'Purchase Quantity',
|
||||
exchangeCount: 'Exchange Quantity',
|
||||
joinCart: 'Add to Cart',
|
||||
confirmBtn: 'Confirm',
|
||||
rushBuy: 'Buy Now',
|
||||
exchangeBtn: 'Exchange',
|
||||
addToCartSuccess: 'Added to cart successfully',
|
||||
minBuyStart: 'Minimum order: {minBuy} {unit}',
|
||||
balanceLabel: 'Balance',
|
||||
pointLabel: 'Points: ',
|
||||
stockLabel: 'Stock: ',
|
||||
groupOfNum: '{num}-person group',
|
||||
limitPerPerson: 'Limit: {count} {unit}/person',
|
||||
limitBuyRange: 'From {minBuy} {unit}, limit {maxBuy} {unit}',
|
||||
limitBuyMax: 'Limit: {maxBuy} {unit}',
|
||||
previewCannotBuy: 'Preview products cannot be purchased',
|
||||
specNotInBale: 'This spec is not in the bale activity',
|
||||
goodsStockInsufficient: 'Insufficient product stock',
|
||||
goodsAddCartSuccess: 'Product added to cart successfully',
|
||||
selected: 'Selected: ',
|
||||
startingNum: 'Min. order: {num} pcs',
|
||||
goodsOffShelves: 'Product has been removed',
|
||||
|
||||
// Price & Promotion
|
||||
limitedTimeDiscount: 'Limited Time Discount',
|
||||
sold: 'Sold',
|
||||
countdownEndsIn: 'Ends In',
|
||||
originalPrice: 'Original Price',
|
||||
|
||||
// Combo Package
|
||||
comboPackage: 'Combo Package',
|
||||
comboPrice: 'Combo Price',
|
||||
|
||||
// Coupons
|
||||
coupons: 'Coupons',
|
||||
discountOff: '% off',
|
||||
minSpendAvailable: 'Min. spend {amount}',
|
||||
noThreshold: 'No threshold',
|
||||
maxDiscount: 'Max discount: {symbol}{amount}',
|
||||
validUntilDate: 'Valid until: {date}',
|
||||
validForDays: 'Valid for {days} days after claiming',
|
||||
validPermanent: 'Valid: Permanent',
|
||||
couponSoldOut: 'Sold out',
|
||||
couponClaimed: 'Claimed',
|
||||
couponReceive: 'Claim',
|
||||
|
||||
// Promotions
|
||||
promotion: 'Promotion',
|
||||
fullReduction: 'Full Reduction',
|
||||
fullGift: 'Full Gift',
|
||||
freeShipping: 'Free Shipping',
|
||||
|
||||
// Product Message
|
||||
productMessage: 'Product Message',
|
||||
|
||||
// AI Customer Service
|
||||
aiCustomerService: 'AI Assistant',
|
||||
|
||||
// Contact Popup
|
||||
dialOnMobile: 'Dial {phone} on mobile',
|
||||
cancel: 'Cancel',
|
||||
copyToClipboard: 'Copy to Clipboard',
|
||||
copySuccess: 'Copied successfully',
|
||||
|
||||
// Common Button
|
||||
confirm: 'Confirm',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user