feat: 新增多语言文案、优化导航及工具函数,修复部分业务逻辑

1. 新增多语言资源文件,覆盖文章、预约日期、会员信息、优惠券、表单、购物车、积分商城、分销、AI聊天等多个模块
2. 优化底部导航组件,使用多语言配置替代硬编码文案
3. 重构工具函数,新增从后端数据提取多语言文案的工具方法
4. 修复邀请好友页面的保存提示文案,替换为多语言版本
5. 修复商品SKU组件的提示文案,使用多语言配置
6. 重构AI聊天页面的帮助文档和回复模板,使用多语言配置
7. 优化空状态组件,支持多语言默认文案
8. 修复跳转逻辑,补全参数传递
9. 新增本地开发环境配置
This commit is contained in:
2026-06-25 18:15:31 +08:00
parent ca4e7fd170
commit 2d8846c64c
82 changed files with 3497 additions and 1062 deletions

View File

@@ -1,5 +1,70 @@
export const lang = {
//title为每个页面的标题
// title: 'Distribution Center',
title: ''
}
title: '',
// Header member info
superiorAgent: 'Superior Agent',
headquarters: 'Headquarters',
invitedSuccess: 'Invited successfully: {count} people',
// Commission / Balance
withdrawable: 'Available {withdraw} (Yuan)',
withdrawDetail: 'Withdrawal Details',
withdrawing: 'Withdrawing (Yuan)',
pendingDeposit: 'Pending (Yuan)',
withdraw: 'Withdraw',
// Menu items
myFans: 'My Fans',
invitedUsers: 'Invited Users',
detail: 'Details',
totalAccumulated: 'Total {account} {symbol}{amount}',
order: 'Orders',
orderDetail: 'Order Details',
myInviteCode: 'My Invite Code',
inviteFriendsEarnRewards: 'Invite friends, earn rewards',
// Empty / Not applied state
notFenxiaoYet: 'You are not a {name} yet, please submit an application',
joinNow: 'Join Now',
// Task popup
quickUpgradeTips: 'Quick Upgrade Tips',
completed: 'Completed',
incomplete: 'Incomplete',
goComplete: 'Go Complete',
tip: 'Tip',
anyConditionUpgrade: 'Meet any one condition to upgrade',
allConditionsUpgrade: 'All conditions must be met to upgrade',
// Page title suffix
center: 'Center',
// Toast messages
merchantNotOpenFenxiao: 'Merchant has not enabled distribution',
fenxiaoFrozen: 'Distributor account has been frozen',
// Upgrade tasks - Subordinate consumption
subordinateConsumption: 'Subordinate Consumption',
subordinateOrderCount: '{count} subordinate orders completed',
subordinateOrderCountTip: 'Number of orders placed by the distributor and their direct referred members',
subordinateOrderAmount: 'Subordinate order amount reaches {amount} Yuan',
subordinateOrderAmountTip: 'Total order amount of the distributor and their direct referred members',
subordinateCommissionAmount: 'Total {account} from subordinate consumption reaches {amount} Yuan',
subordinateCommissionAmountTip: 'Total {account} from orders of the distributor and their direct referred members',
// Upgrade tasks - Self consumption
selfConsumption: 'Self Consumption',
selfOrderCount: '{count} self orders completed',
selfOrderCountTip: 'Number of orders placed by the distributor themselves',
selfOrderAmount: 'Self order amount reaches {amount} Yuan',
selfOrderAmountTip: 'Total order amount of the distributor\'s own purchases',
// Upgrade tasks - Invite friends
inviteFriends: 'Invite Friends',
inviteFriendCount: 'Invite {count} friends',
inviteFriendCountTip: 'Number of direct subordinate members (including those who have applied to become distributors)',
inviteFenxiaoCount: 'Invite {count} friends to become distributors',
inviteFenxiaoCountTip: 'Number of direct subordinate distributors',
}