refactor: 统一项目内国际化key的命名空间格式
本次提交对全项目的国际化调用进行了规范化重构:
1. 为中文/英文语言包新增了avatar和gender的别名映射,兼容旧有headImg/sex写法
2. 修正了lang.js中的注释路径错误
3. 将所有页面和组件内的$lang调用从短路径改为带业务模块前缀的完整命名空间路径,例如将$lang('title')改为$lang('article.list.title')
4. 优化了i18n-lazy.js的注释说明,补充了正确的key命名格式示例
5. 统一了分销、订单、会员等模块的国际化key层级,确保所有语言调用路径一致
This commit is contained in:
@@ -25,21 +25,21 @@
|
||||
<view class="title color-base-border color-base-text">{{
|
||||
fenxiaoWords.fenxiao_name }}</view>
|
||||
</view>
|
||||
<view class="color-tip font-size-goods-tag">{{ $lang('joinTime') }}{{
|
||||
<view class="color-tip font-size-goods-tag">{{ $lang('fenxiao.team.joinTime') }}{{
|
||||
$util.timeStampTurnTime(item.bind_fenxiao_time).substring(0, 10) }}</view>
|
||||
</view>
|
||||
<view class="consume-info">
|
||||
<view>
|
||||
<text>{{ item.one_child_num }}</text>
|
||||
{{ $lang('peopleUnit') }}
|
||||
{{ $lang('fenxiao.team.peopleUnit') }}
|
||||
</view>
|
||||
<view>
|
||||
<text>{{ item.order_num }}</text>
|
||||
{{ $lang('orderUnit') }}
|
||||
{{ $lang('fenxiao.team.orderUnit') }}
|
||||
</view>
|
||||
<view>
|
||||
<text>{{ item.order_money | moneyFormat }}</text>
|
||||
{{ $lang('currencyUnit') }}
|
||||
{{ $lang('fenxiao.team.currencyUnit') }}
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -50,21 +50,21 @@
|
||||
<text>{{ item.nickname }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="color-tip font-size-goods-tag">{{ $lang('joinTime') }}{{
|
||||
<view class="color-tip font-size-goods-tag">{{ $lang('fenxiao.team.joinTime') }}{{
|
||||
$util.timeStampTurnTime(item.bind_fenxiao_time).substring(0, 10) }}</view>
|
||||
</view>
|
||||
<view class="consume-info">
|
||||
<view>
|
||||
<text>0</text>
|
||||
{{ $lang('peopleUnit') }}
|
||||
{{ $lang('fenxiao.team.peopleUnit') }}
|
||||
</view>
|
||||
<view>
|
||||
<text>{{ item.order_num }}</text>
|
||||
{{ $lang('orderUnit') }}
|
||||
{{ $lang('fenxiao.team.orderUnit') }}
|
||||
</view>
|
||||
<view>
|
||||
<text>{{ item.order_money | moneyFormat }}</text>
|
||||
{{ $lang('currencyUnit') }}
|
||||
{{ $lang('fenxiao.team.currencyUnit') }}
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -72,7 +72,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="teamList.length == 0 && emptyShow"><ns-empty :text="$lang('noData')" :isIndex="false"></ns-empty>
|
||||
<block v-if="teamList.length == 0 && emptyShow"><ns-empty :text="$lang('fenxiao.team.noData')" :isIndex="false"></ns-empty>
|
||||
</block>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
@@ -108,7 +108,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merchantNotOpenFenxiao'),
|
||||
title: this.$lang('fenxiao.team.merchantNotOpenFenxiao'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user