feat: 新增多语言文案与组件国际化适配
本次提交完成了大量多语言相关的新增与优化工作: 1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案 2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包 3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案 4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持 5. 修复企业微信JS-SDK的错误提示文案硬编码问题
This commit is contained in:
@@ -2,4 +2,71 @@ export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Edit Product',
|
||||
addTitle: 'Add Product',
|
||||
|
||||
// Product status
|
||||
grounding: {
|
||||
offShelf: 'Off Shelf',
|
||||
onShelf: 'On Shelf',
|
||||
},
|
||||
|
||||
// Pickup type
|
||||
pickupType: {
|
||||
sameDay: 'Same Day Delivery',
|
||||
nextDay: 'Next Day Delivery',
|
||||
dayAfter: 'Day After Delivery',
|
||||
},
|
||||
|
||||
// Virtual delivery type
|
||||
virtualDeliver: {
|
||||
auto: 'Automatic Delivery',
|
||||
manual: 'Manual Delivery',
|
||||
verify: 'In-store Verification',
|
||||
},
|
||||
|
||||
// Virtual receive type
|
||||
virtualReceive: {
|
||||
auto: 'Automatic Receipt',
|
||||
buyerConfirm: 'Buyer Confirm Receipt',
|
||||
},
|
||||
|
||||
// Validity type
|
||||
validityType: {
|
||||
permanent: 'Permanent',
|
||||
daysAfterPurchase: 'Valid for Days After Purchase',
|
||||
specifiedDate: 'Specified Expiry Date',
|
||||
},
|
||||
|
||||
// Card code
|
||||
carmi: {
|
||||
add: 'Add Card Code',
|
||||
addWithCount: 'Add Card Code [{count}]',
|
||||
},
|
||||
|
||||
// Limit type
|
||||
limitType: {
|
||||
single: 'Single Purchase Limit',
|
||||
longTerm: 'Long-term Purchase Limit',
|
||||
},
|
||||
|
||||
// Messages
|
||||
message: {
|
||||
goodsNotExist: 'Product does not exist',
|
||||
maxCategory: 'Product can belong to multiple categories, maximum 10',
|
||||
pleaseEnterGoodsName: 'Please enter product name',
|
||||
subtitleMaxLength: 'Product description cannot exceed {max} characters',
|
||||
pleaseUploadGoodsImage: 'Please upload product images',
|
||||
pleaseEnterSalePrice: 'Please enter sale price',
|
||||
salePriceFormatError: '[Sale Price] format input error',
|
||||
originalPriceFormatError: '[Original Price] format input error',
|
||||
pleaseEnterStock: 'Please enter stock',
|
||||
stockFormatError: '[Stock] format input error',
|
||||
minOrderFormatError: '[Minimum Order] format input error',
|
||||
minOrderNotLessThanZero: 'Minimum order quantity cannot be less than 0',
|
||||
},
|
||||
|
||||
// Placeholder
|
||||
placeholder: {
|
||||
selectGoodsForm: 'Please select product form',
|
||||
selectSupplier: 'Please select supplier',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user