feat: add and optimize multiple multilingual language packs

1. 新增拼团、砍价、分销、支付、地址、账户等多业务场景的中英文本地化文案
2. 替换项目中硬编码的文本为多语言调用,统一前端页面文案展示
3. 新增多个业务组件的国际化语言配置文件
This commit is contained in:
2026-06-26 10:17:33 +08:00
parent 066ca61d97
commit 66a579d48c
73 changed files with 1378 additions and 380 deletions

View File

@@ -8,10 +8,10 @@
<view class="birthday-title-desc" v-if="birthday.blessing_content">
{{ birthday.blessing_content }}
</view>
<view class="birthday-title-desc" v-else>感谢您一直以来的支持,在您生日到来之际,特为您送上最真诚的祝福!</view>
<view class="birthday-title-desc" v-else>{{ $lang('components.nsBirthdayGift.defaultBlessing') }}</view>
<view class="birthday-title-hint">
<image :src="$util.img('public/uniapp/birthday_gift/birthday_gift_left.png')" mode="" class="birthday-img-all" show-menu-by-longpress/>
<view class="font-size-toolbar">生日贺礼</view>
<view class="font-size-toolbar">{{ $lang('components.nsBirthdayGift.birthdayGift') }}</view>
<image :src="$util.img('public/uniapp/birthday_gift/birthday_gift_right.png')" mode="" class="birthday-img-all" show-menu-by-longpress/>
</view>
<scroll-view scroll-y="true" class="register-box">
@@ -20,31 +20,31 @@
<view class="info">
<text class="num">
{{ parseFloat(birthday.point) }}
<text class="type">积分</text>
<text class="type">{{ $lang('components.nsBirthdayGift.points') }}</text>
</text>
<view class="desc">用于下单时抵现或兑换商品等</view>
<view class="desc">{{ $lang('components.nsBirthdayGift.pointDesc') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('1')">立即查看</view>
<view class="tip" @click="closeRewardPopup('1')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
</view>
<view class="content" v-if="birthday.balance_type == 0 && birthday.balance > 0">
<view class="info">
<text class="num">
{{ parseFloat(birthday.balance) }}
<text class="type">元红包</text>
<text class="type">{{ $lang('components.nsBirthdayGift.yuanRedPacket') }}</text>
</text>
<view class="desc">不可提现红包</view>
<view class="desc">{{ $lang('components.nsBirthdayGift.nonWithdrawable') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
</view>
<view class="content" v-if="birthday.balance_type == 1 && birthday.balance_money > 0">
<view class="info">
<text class="num">
{{ parseFloat(birthday.balance_money) }}
<text class="type">元红包</text>
<text class="type">{{ $lang('components.nsBirthdayGift.yuanRedPacket') }}</text>
</text>
<view class="desc">可提现红包</view>
<view class="desc">{{ $lang('components.nsBirthdayGift.withdrawable') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
</view>
<block v-if="birthday.coupon_list.length > 0">
@@ -54,18 +54,18 @@
<block v-if="item.type == 'reward'">
<text class="num">
{{ parseFloat(item.money) }}
<text class="type">元优惠劵</text>
<text class="type">{{ $lang('components.nsBirthdayGift.yuanCoupon') }}</text>
</text>
</block>
<block v-else-if="item.type == 'discount'">
<text class="num">
{{ item.discount }}
<text class="type">折</text>
<text class="type">{{ $lang('components.nsBirthdayGift.discount') }}</text>
</text>
</block>
<view class="desc">用于下单时抵现或兑换商品等</view>
<view class="desc">{{ $lang('components.nsBirthdayGift.couponDesc') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('3')">立即查看</view>
<view class="tip" @click="closeRewardPopup('3')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
</view>
</block>
</block>

View File

@@ -11,38 +11,38 @@
</view>
<view class="content-title-name" v-if="memberInfo">Dear {{ memberInfo.nickname }}</view>
<view class="content-title-hint" v-if="newgift.remark">{{ newgift.remark }}</view>
<view class="content-title-hint" v-else>感谢您一直以来的支持,为回馈会员,商城{{ newgift.activity_name ? newgift.activity_name : 'xx' }}节日,为您提供以下福利</view>
<view class="content-title-hint" v-else>{{ $lang('components.nsNewGift.thankYouHint', { activityName: newgift.activity_name || 'xx' }) }}</view>
<scroll-view scroll-y="true" class="register-box">
<view :class="introduction > 38 ? 'reward-content' : 'reward-content-two'">
<view class="content" v-if="newgift.award_list.point > 0">
<view class="info">
<text class="num">
{{ newgift.award_list.point }}
<text class="type">积分</text>
<text class="type">{{ $lang('components.nsNewGift.points') }}</text>
</text>
<view class="desc">用于参与活动购买商品时抵扣</view>
<view class="desc">{{ $lang('components.nsNewGift.pointDesc') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('1')">立即查看</view>
<view class="tip" @click="closeRewardPopup('1')">{{ $lang('components.nsNewGift.viewNow') }}</view>
</view>
<view class="content" v-if="newgift.award_list.balance_type == 0 && newgift.award_list.balance > 0">
<view class="info">
<text class="num">
{{ newgift.award_list.balance | int }}
<text class="type">元红包</text>
<text class="type">{{ $lang('components.nsNewGift.yuanRedPacket') }}</text>
</text>
<view class="desc">不可提现红包</view>
<view class="desc">{{ $lang('components.nsNewGift.nonWithdrawableDesc') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsNewGift.viewNow') }}</view>
</view>
<view class="content" v-if="newgift.award_list.balance_type == 1 && newgift.award_list.balance_money > 0">
<view class="info">
<text class="num">
{{ newgift.award_list.balance_money | int }}
<text class="type">元红包</text>
<text class="type">{{ $lang('components.nsNewGift.yuanRedPacket') }}</text>
</text>
<view class="desc">可提现红包</view>
<view class="desc">{{ $lang('components.nsNewGift.withdrawableDesc') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsNewGift.viewNow') }}</view>
</view>
<block v-if="newgift.award_list.coupon_list.length > 0">
<block v-for="(item, index) in newgift.award_list.coupon_list" :key="index">
@@ -50,15 +50,15 @@
<view class="info">
<text v-if="item.type == 'reward'" class="num">
{{ parseFloat(item.money) }}
<text class="type">元优惠劵</text>
<text class="type">{{ $lang('components.nsNewGift.yuanCoupon') }}</text>
</text>
<text v-else-if="item.type == 'discount'" class="num">
{{ item.discount | int }}
<text class="type">折</text>
<text class="type">{{ $lang('components.nsNewGift.discount') }}</text>
</text>
<view class="desc">用于下单时抵现或兑换商品等</view>
<view class="desc">{{ $lang('components.nsNewGift.couponDesc') }}</view>
</view>
<view class="tip" @click="closeRewardPopup('3')">立即查看</view>
<view class="tip" @click="closeRewardPopup('3')">{{ $lang('components.nsNewGift.viewNow') }}</view>
</view>
</block>
</block>