feat: 新增多语言文案、优化导航及工具函数,修复部分业务逻辑
1. 新增多语言资源文件,覆盖文章、预约日期、会员信息、优惠券、表单、购物车、积分商城、分销、AI聊天等多个模块 2. 优化底部导航组件,使用多语言配置替代硬编码文案 3. 重构工具函数,新增从后端数据提取多语言文案的工具方法 4. 修复邀请好友页面的保存提示文案,替换为多语言版本 5. 修复商品SKU组件的提示文案,使用多语言配置 6. 重构AI聊天页面的帮助文档和回复模板,使用多语言配置 7. 优化空状态组件,支持多语言默认文案 8. 修复跳转逻辑,补全参数传递 9. 新增本地开发环境配置
This commit is contained in:
@@ -1,5 +1,55 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
// title: 'Distributor Application'
|
||||
title: ''
|
||||
}
|
||||
title: '',
|
||||
|
||||
// Page header
|
||||
pleaseFillApplyInfo: 'Please fill in application information',
|
||||
|
||||
// Form fields
|
||||
inviter: 'Inviter',
|
||||
nameLabel: 'Name',
|
||||
namePlaceholder: 'Please enter {name} name',
|
||||
mobile: 'Mobile',
|
||||
mobilePlaceholder: 'Please enter mobile number',
|
||||
|
||||
// Agreement
|
||||
haveReadAndUnderstand: 'I have read and understand',
|
||||
applyAgreement: '【{name} Application Agreement】',
|
||||
|
||||
// Buttons
|
||||
applyBecome: 'Apply to become {name}',
|
||||
reapply: 'Reapply',
|
||||
|
||||
// Application conditions
|
||||
applyConditionTitle: 'Distributor Application Conditions',
|
||||
becomeConditionTitle: 'Conditions to Become a Distributor',
|
||||
conditionConsumeCount: 'To apply to become {name}, your purchase count must reach {count} times',
|
||||
conditionConsumeMoney: 'To apply to become {name}, your purchase amount must reach {money} yuan',
|
||||
conditionBuyGoods: 'To apply to become {name}, you need to purchase one of the following specified products',
|
||||
becomeConditionBuyGoods: 'To become {name}, you need to purchase one of the following specified products',
|
||||
|
||||
// Expand/collapse
|
||||
expandMore: 'Expand more',
|
||||
collapse: 'Collapse',
|
||||
|
||||
// Status messages
|
||||
notFenxiao: 'You are not a distributor yet',
|
||||
applyPending: 'You have submitted the {name} application, waiting for review',
|
||||
applyRejected: 'Your {name} application has been rejected, please try again',
|
||||
|
||||
// Default values
|
||||
none: 'None',
|
||||
|
||||
// Toast messages
|
||||
merchantNotOpenFenxiao: 'Merchant has not enabled distribution',
|
||||
pleaseReadAndCheckAgreement: 'Please read the agreement carefully and check it',
|
||||
|
||||
// Page title suffix
|
||||
applySuffix: 'Application',
|
||||
|
||||
// Form validation
|
||||
pleaseEnterName: 'Please enter {name} name',
|
||||
pleaseEnterMobile: 'Please enter mobile number',
|
||||
pleaseEnterValidMobile: 'Please enter a valid mobile number',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user