feat: 新增多语言文案、优化导航及工具函数,修复部分业务逻辑
1. 新增多语言资源文件,覆盖文章、预约日期、会员信息、优惠券、表单、购物车、积分商城、分销、AI聊天等多个模块 2. 优化底部导航组件,使用多语言配置替代硬编码文案 3. 重构工具函数,新增从后端数据提取多语言文案的工具方法 4. 修复邀请好友页面的保存提示文案,替换为多语言版本 5. 修复商品SKU组件的提示文案,使用多语言配置 6. 重构AI聊天页面的帮助文档和回复模板,使用多语言配置 7. 优化空状态组件,支持多语言默认文案 8. 修复跳转逻辑,补全参数传递 9. 新增本地开发环境配置
This commit is contained in:
30
lang/zh-cn/components-diy/diy-coupon.js
Normal file
30
lang/zh-cn/components-diy/diy-coupon.js
Normal file
@@ -0,0 +1,30 @@
|
||||
export const lang = {
|
||||
// 按钮文本
|
||||
claim: '领取',
|
||||
claimNow: '立即领取',
|
||||
goUse: '去使用',
|
||||
useNow: '立即使用',
|
||||
goBrowse: '去逛逛',
|
||||
|
||||
// 金额单位
|
||||
yuan: '元',
|
||||
discount: '折',
|
||||
|
||||
// 优惠券使用条件
|
||||
minSpendAvailable: '满{amount}元可用',
|
||||
noThresholdCoupon: '无门槛优惠券',
|
||||
minSpendUse: '满{amount}元使用',
|
||||
noThresholdUse: '无门槛使用',
|
||||
allProductsAvailable: '所有商品可用',
|
||||
specifiedProductsAvailable: '指定商品可用',
|
||||
specifiedProductsUnavailable: '指定商品不可用',
|
||||
|
||||
// 其他文本
|
||||
coupon: '优惠券',
|
||||
noCoupons: '暂无优惠券',
|
||||
validUntil: '有效期至{date}',
|
||||
|
||||
// 提示消息
|
||||
couponSoldOut: '该优惠券已抢光',
|
||||
claimSuccess: '领取成功',
|
||||
}
|
||||
Reference in New Issue
Block a user