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

@@ -37,13 +37,13 @@
<text>{{ $util.timeStampTurnTime(item.create_time) }}</text>
</view>
<view class="balances-num">
<text :class="item.account_data > 0 ? 'color-base-text' : ''">{{ item.account_data > 0 ?
'+' + item.account_data : item.account_data }}元</text>
<text :class="item.account_data > 0 ? 'color-base-text' : ''">{{ (item.account_data > 0 ?
'+' + item.account_data : item.account_data) + $lang('yuan') }}</text>
</view>
</view>
</view>
</block>
<block v-else><ns-empty :isIndex="false" text="暂无余额明细"></ns-empty></block>
<block v-else><ns-empty :isIndex="false" :text="$lang('emptyTips')"></ns-empty></block>
<!-- 无明细列表 -->
</block>
</mescroll-uni>
@@ -62,13 +62,13 @@ export default {
return {
dataList: [],
statusList: [{
name: '全部',
name: this.$lang('filterAll'),
id: '0'
}, {
name: '收入',
name: this.$lang('filterIncome'),
id: '1'
}, {
name: '支出',
name: this.$lang('filterExpense'),
id: '2'
}],
scrollInto: '',
@@ -79,7 +79,7 @@ export default {
date: ''
},
balanceType: [{
label: '全部',
label: this.$lang('filterAll'),
value: '0'
}], //积分类型
balanceIndex: 0,
@@ -104,7 +104,7 @@ export default {
bindDateChange: function (e) {
var temp = e.target.value;
var tempArr = temp.split('-');
this.date = tempArr[0] + '年' + tempArr[1] + '月';
this.date = this.$lang('dateFormatYM', { year: tempArr[0], month: tempArr[1] });
this.searchType.date = e.target.value;
this.$refs.mescroll.refresh();
},
@@ -121,7 +121,7 @@ export default {
}
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
return `${year}年${month}月`;
return this.$lang('dateFormatYM', { year, month });
},
bindPickerChange(e) {
this.balanceIndex = e.detail.value;
@@ -135,7 +135,7 @@ export default {
success: res => {
let balanceType = Object.assign(res.balance, res.balance_money),
typeArr = [{
label: '全部',
label: this.$lang('filterAll'),
value: '0'
}];
for (var index in balanceType) {